Skip to main content

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!