Option to specify the user agent identifier.
class user_agent
Member Functions
Name |
Description |
---|---|
Constructs an object of class user_agent. |
|
Gets the value of the option. Sets the value of the option. |
Remarks
The default is to not specify the user agent.
Example
To set the user agent for an object of class urdl::istream:
urdl::istream is; is.set_option(urdl::http::user_agent("Urdl")); is.open("http://www.boost.org");
To set the user agent for an object of class urdl::read_stream:
urdl::read_stream stream; stream.set_option(urdl::http::user_agent("Urdl")); stream.open("http://www.boost.org");
Requirements
Header: <urdl/http.hpp>
Namespace: urdl::http