Sending a POST request from a local JSON file - 6.5

HTTP

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Internet components (Integration) > HTTP components
Data Quality and Preparation > Third-party systems > Internet components (Integration) > HTTP components
Design and Development > Third-party systems > Internet components (Integration) > HTTP components
EnrichPlatform
Talend Studio

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/.