httpHeader ( string headerName , string headerValue , boolean _temporary ) : void
Add a special header in HTTP requests sended.
You can change the request method (PUT, DELETE, etc.) with the special header RequestMethod
Example
// Set a custom header for the HTTP request
httpHeader("Authorization", "Bearer my_token");
httpHeader("Content-Type", "application/json", true); // Temporary header for one request
// Additional logic for sending the request goes here
result = getPage("http://site.com/page.php")
See also
httpHeaderClearhttpHeaderCommunicationLink
Parameters
headerName
headerValue
_temporary (optional)
default:true. Is the header is active just for 1 request?