System.Net.HttpWebRequest.UserAgent Property

Gets or sets the value of the User-agent HTTP header.

Syntax

public string UserAgent { get; set; }

Value

A string containing the value of the HTTP User-agent header. The default value is null.

Remarks

Note: For additional information see section 14.43 of IETF RFC 2616 - HTTP/1.1.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0