Soup.Session:user-agent
Description: Reference for property Soup.Session:user-agent

### Property

# Soup Session:user-agent

#### Declaration

    property user-agent: utf8 [ read, write ]

#### Description [src]

User-Agent string.

If non-`NULL`, the value to use for the “User-Agent” header on `SoupMessage`s sent from this session.

RFC 2616 says: “The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User agents SHOULD include this field with requests.”

The User-Agent header contains a list of one or more product tokens, separated by whitespace, with the most significant product token coming first. The tokens must be brief, ASCII, and mostly alphanumeric (although “-“, “_”, and “.” are also allowed), and may optionally include a “/” followed by a version string. You may also put comments, enclosed in parentheses, between or after the tokens.

If you set a `SoupSession:user-agent` property that has trailing whitespace, `SoupSession` will append its own product token (eg, `libsoup/2.3.2`) to the end of the header for you.

Type:`gchar*`

Default value | NULL
Getter method | `soup_session_get_user_agent()`
Setter method | `soup_session_set_user_agent()`

#### Flags

Readable | yes
Writable | yes
Construct | no
Construct only | no