Gets or sets a collection of header name/value pairs associated with the request.
A System.Net.WebHeaderCollection containing header name/value pairs associated with the request or, if this property has not been set or was set to null, a new instance of the System.Net.WebHeaderCollection class.
Note: This property stores the header information that the current instance sends with a request. This is an unrestricted collection of headers; setting headers that are protected in System.Net.WebRequest descendants like System.Net.HttpWebRequest is allowed.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0