Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.Connection Property

Gets or sets the value of the Connection HTTP header. [Edit]

public string Connection { set; get; }

Value

A string containing the value of the Connection HTTP header. The default value is null. [Edit]

Exceptions

TypeReason
ArgumentExceptionThe value of HttpWebRequest.Connection is set to "Keep-alive" or "Close". This value is case insensitive. [Edit]

Remarks

The current request sends the HttpWebRequest.Connection property to the Internet resource as the Connection HTTP header.

Note:

If HttpWebRequest.KeepAlive is true , the value "Keep-alive" is appended to the end of the Connection header.

For additional information see section 14.10 of IETF RFC 2616 - HTTP/1.1.

[Edit]

Requirements

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