I'm looking to add 'application/x-www-form-urlencoded' in the request header to be sent from a protocol. Can anyone provide an example of how this can be achieved using a DataMiner Protocol.
NOTE: Only some POST commands require URLENCODING. The majority of GET/PUT/DELETE commands can be sent without the additional header.
DEVICE API INFORMATION
For POST APIs, ensure that the following conditions are met:
- Content type must be set to application/x-www-form-urlencoded in request header
- Request body must be URL encoded
Ian Harvey [SLC] [DevOps Advocate] Selected answer as best 10th January 2022
Hi Ian,
Below an example that should work:
Ian Harvey [SLC] [DevOps Advocate] Posted new comment 10th January 2022
Many thanks Jens. This solution works perfectly.