HttpRequestHeaderType Enumeration

Used by the AddHttpRequestHeader method to add a header to an HTTP message, and by the RemoveHttpRequestHeader method to remove a header from an HTTP message.

Enumerated values

The HttpRequestHeaderType enumeration supports these header types, which are described on the MSDN Web site at http://msdn.microsoft.com/en-us/library/system.net.httprequestheader.aspx:
  • Accept
  • AcceptCharset
  • AcceptEncoding
  • AcceptLanguage
  • Allow
  • Authorization
  • CacheControl
  • Connection
  • ContentEncoding
  • ContentLanguage
  • ContentLength
  • ContentLocation
  • ContentMd5
  • ContentRange
  • ContentType
  • Cookie
  • Date
  • Expect
  • Expires
  • From
  • Host
  • IfMatch
  • IfModifiedSince
  • IfNoneMatch
  • IfRange
  • IfUnmodifiedSince
  • KeepAlive
  • LastModified
  • MaxForwards
  • Pragma
  • ProxyAuthorization
  • Range
  • Referer
  • Te
  • Trailer
  • TransferEncoding
  • Translate
  • Upgrade
  • UserAgent
  • Via
  • Warning
Note: Enumerated values must be followed by an exclamation mark (!) when passed as method parameters.