You can translate the question and the replies:

Querying a Rest API through post request with application/x-www-form-urlencoded content-type

Hello, I need to connect to a REST API whit a POST requests which returns a json file. In this Post request, I need to put in the body, that must be an application/x-www-form-urlencoded content-type, two parameters. So I created a Json data source connector, I set HTTP client as Data Route, and I set POST as http method and fill the field URL with the good URL. But there is not the choice application/x-www-form-urlencoded as content type for the post body... How can I parameterize it in order to have the good content type? Thanks in advance for your consideration.
04-05-2021 10:49:42 -0400

1 Answer

Hi, In JSON data source, to add a content type I would click on the *HTTP headers* > *New* > add the name as "Content-Type" and value as "application/x-www-form-urlencoded". The available *Content-Type* dropdown would define the type of content entered in the post body of POST,PUT,PATCH request. For parameterization, I would make use of interpolation variables to add parameters in URL, HTTP headers and Post body. These variables would allow you to retrieve the values for variables to be passed at run time. You could refer to the section [HTTP Path]( for more information. Hope this helps.
Denodo Team
05-05-2021 05:58:16 -0400
You must sign in to add an answer. If you do not have an account, you can register here