HTTPSocket.SetRequestHeader
From Xojo Documentation
Method
HTTPSocket.SetRequestHeader(Name as String, Value as String)
Supported for all project types and targets.
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.
Examples
This example changes the user agent:
HTTPSocket1.SetRequestHeader("User-Agent:", "CustomUserAgentString")