Five Stars

How to make a REST API post request using cHttp

Hi,

 

I'm using Talend ESB 6.2 enterprise and I want my API to keep listening webserver and send the response to Talend DI job.

 

I can run my API in postman with bellow settings

 

"https://mycontent.com/v2/tokens"

Method: POST

 

Headers

Content-Type: application/x-www-form-urlencoded

 

Body:

Check option: x-www-form-urlencoded

 

Key:Value

Parameters added

Username:abc

Password:abc

Department:Finance

.

May I know please how can I set up this configuration in cHttp component  ? There is no refernce to acheieve this

 

Any  help ?

1 REPLY
Moderator

Re: How to make a REST API post request using cHttp

Hello,

Have you already checked component reference about:TalendHelpCenter:cHttp 

Here are related scenarios about:TalendHelpCenter:Retrieving the content of a remote file, TalendHelpCenter:Using cHttp to produce a Web service

Best regards

Sabrina

 

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.