Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Property: WebHeaderCollection ReqHeaders

Declaration

WebHeaderCollection ReqHeaders

Summary

Exposes a collection of request headers. See Remarks.

Remarks

HttpWebRequest labels certain headers "restricted" and requires them to be modified by modifying request properties, rather than setting values via the Headers collection. This class unrestricts some of those headers, specifically: Accept, Host, Referer, TransferEncoding, UserAgent. Some of the restricted headers are only supported partially, indirectly or via properties, specifically: Connection, ContentType, ContentLength, Expect. The remaining restricted headers cannot currently be modified at all, specifically: Date, IfModifiedSince, ProxyConnection, Range