How to make a REST API post request using cHttp

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 ?

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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch