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.
For more technologies supported by Talend, see Talend components.
![](/en-US/components/8.0/Subsystems/http/Content/Resources/images/use-case-httpclient-post1.png)
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 – let us know how we can improve!