You can send specific HTTP headers in your service call requests by providing input/import parameters with specific prefix. For example, if you want to send the ‘Accept’ header, the request input parameter name would be:


The parameter value would be the value you wish to send, for example: text/plain

To process the HTTP headers received in the response object, you can use the following piece of code in your custom JavaScript function:


var myHeader = P55_LAST_REQUEST_OBJECT.getResponseHeader(‘Content-Type’);
Log(‘HTTP Header Content-Type: ‘ + myHeader);


To get all the received HTTP headers you can use for example:


var headers = P55_LAST_REQUEST_OBJECT.getAllResponseHeaders();
Log(‘HTTP Headers – All: ‘ + headers);

Skip to toolbar