Gets or sets the value of the Connection HTTP header.
A string containing the value of the Connection HTTP header. The default value is null.
Type Reason ArgumentException The value of HttpWebRequest.Connection is set to "Keep-alive" or "Close". This value is case insensitive.
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.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0