We have an HTTP call where header should be “application/x-www-form-urlencoded” and data should be “text/plain”. I have only worked in XML and JSON. Can some some help me with the steps to do this.
Below is the CURL from postman for reference: curl --location --request POST 'https://wpbs-uat-is4.onespaworld.com/connect/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-raw 'client_id=po-e58b2822-5e1c-4566-9f79-c49a62c3f61c%40osw.wpbs.test&client_secret=po.7127e4a626b54e7d82951c5e19963a7534fc77209ccd4abf8a9be885bce8e2f2.20201109&grant_type=client_credentials'
Hi Sakshi,
“application/x-www-form-urlencoded” and “text/plain” are different content types and as I understand you can set only one Content-Type. In the pub.client:http, set the Content-Type=application/x-www-form-urlencoded in the “headers” field and set the data you want to send in the “data/args” fields.
Here is the sample request when I use TCPMON to intercept the request sent using pub.client:http