Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > setUserAgent

setUserAgent

setUserAgent(value: String);

The setUserAgent method of the JadeHTTPConnection class sets the "User-Agent" HTTP header.

Set the value parameter to the string value for the "User-Agent" header. If the value of this parameter is null and the User-Agent key exists in the list of headers, the corresponding entry is removed from the list. If the value is non-null, the corresponding value is replaced.