HTTPSecureSocket.SetRequestHeader

From Xojo Documentation

Method

HTTPSecureSocket.SetRequestHeader(Name as String, Value as String)

Supported for all project types and targets.

Sets the value of a request header.

Notes

Request headers are sent to the server along with the action (GET, POST, etc.). They can contain data that the server might use to process your request. Some examples of common request headers are for things such as referring pages, the client name, OS CPU, and so forth.

Example

This example sets a request header.

Socket1.SetRequestHeader("Content-Type", "text/xml")