Connect Rest with application/x-www-form-urlencoded
Recently our application has a requirement to integrate with third party service which accepts only URL encoded fields as request body. The Connect-Rest has been modified with Header as Content-Type and Map from Key as application/x-www-form-urlencoded. But receiving Invalid Request error. This works well at Postman. Can anyone help with resolution? Pega Version - 7.2.
***Edited by Moderator Marissa to update Product and Version***
I'm assuming you are using HTTP POST and the content type of the body is application/x-www-form-urlencoded? How do you plan to map the request data? In your screenshot the request data mapping is blank.
For example, if the body should be name=foo&action=open, you will need to construct such a string manually, set it to a property and then use Map from as Clipboard and Map from key as the property. Also, make sure every "name" and "value" in name=value pair is URL encoded and every name=value pair is separated by an ampersand.