Skip to main content

Sending a POST request from a local JSON file

In this scenario, a four-component Job is used to read parameters from a given JSON file and send it in a POST request to a web site.

For more technologies supported by Talend, see Talend components.

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 tHttpRequest sends the pair to http://echo.itcuties.com/, an URL provided for demonstration by an online programming community, www.itcuties.com.

Note that the e parameter is required by http://echo.itcuties.com/.

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 – let us know how we can improve!