Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Adds a message header to each HTTP request.
void StreamHTTPParms.addCustomHTTPHeader(String name, String value)
name The header name.
value The header value.
If this method is called more than once with the same name parameter, the values are concatenated into a comma-separated list.
The following standard headers cannot be changed using this method:
Connection
Content-Length
User-Agent
Content-Type
Other headers can be modified by the Java VM.
Specify custom cookies by calling this method with Cookie as the header name.
For Android smartphones, use the setExtraParameters method to specify a custom_header parameter.