Sending a POST request from a local JSON file - 7.3

HTTP

Version
7.3
Language
English
Product
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 Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Internet components (Integration) > Web protocols > HTTP components
Data Quality and Preparation > Third-party systems > Internet components (Integration) > Web protocols > HTTP components
Design and Development > Third-party systems > Internet components (Integration) > Web protocols > HTTP components
Last publication date
2024-02-21

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