Session.setUserAgent
void setUserAgent(string userAgent)Set the value to use for the "User-Agent" header on classMessages sent from session.
If user_agent has trailing whitespace, session will append its own product token (eg, libsoup/3.0.0) to the end of the header for you. If user_agent is null then no "User-Agent" will be included in requests. See propertySession:user-agent for more information.
Parameters
userAgent | the user agent string |