HttpWebRequest.ProtocolVersion Property
Gets or sets the HTTP protocol version for this request.
Namespace: System.Net
Assembly: System (in system.dll)
public Version ProtocolVersion { get; set; }
The HTTP version to use for the request. Valid values: HttpVersion.Version10, HttpVersion.Version11. The default is HttpVersion.Version11.
Exception type | Condition |
---|---|
ArgumentException | An invalid value was specified. |
Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.
HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace