Sending a POST request from a local JSON file
This scenario reads data from a JSON file and send it in a POST request to an HTTP server. The scenario also displays the content of the response for verification purpose.
The JSON file to be used reads as follows:
{"echo":
[
{
"data":"e=hello"
}
]
}
From that file, tFileInputJSON reads the e parameter and its value hello and tHTTPClient sends the pair to the HTTP server with the URL of https://httpbin.org.