Gets the headers associated with the current response from the server.
A System.Net.WebHeaderCollection containing the header information returned with the response.
Type Reason ObjectDisposedException The current instance has been disposed.
This property is read-only.
Note:The HttpWebResponse.Headers property is a collection of name/value pairs containing the HTTP header values returned with the response. The following table lists common headers and the properties that store their values.
Header Property Content-Encoding HttpWebResponse.ContentEncoding Content-Length HttpWebResponse.ContentLength Content-Type HttpWebResponse.ContentType Last-Modified HttpWebResponse.LastModified Server HttpWebResponse.Server This property overrides WebResponse.Headers.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0