Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpRequestHeader Enumeration

The HTTP headers that may be specified in a client request.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)
public enum HttpRequestHeader
Member nameDescription
Supported by Silverlight for Windows PhoneCacheControlThe Cache-Control header, which specifies directives that must be obeyed by all cache control mechanisms along the request/response chain.
Supported by Silverlight for Windows PhoneConnectionThe Connection header, which specifies options that are desired for a particular connection.
Supported by Silverlight for Windows PhoneDateThe Date header, which specifies the date and time at which the request originated.
Supported by Silverlight for Windows PhoneKeepAliveThe Keep-Alive header, which specifies a parameter used into order to maintain a persistent connection.
Supported by Silverlight for Windows PhonePragmaThe Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.
Supported by Silverlight for Windows PhoneTrailerThe Trailer header, which specifies the header fields present in the trailer of a message encoded with chunked transfer-coding.
Supported by Silverlight for Windows PhoneTransferEncodingThe Transfer-Encoding header, which specifies what (if any) type of transformation that has been applied to the message body.
Supported by Silverlight for Windows PhoneUpgradeThe Upgrade header, which specifies additional communications protocols that the client supports.
Supported by Silverlight for Windows PhoneViaThe Via header, which specifies intermediate protocols to be used by gateway and proxy agents.
Supported by Silverlight for Windows PhoneWarningThe Warning header, which specifies additional information about that status or transformation of a message that might not be reflected in the message.
Supported by Silverlight for Windows PhoneAllowThe Allow header, which specifies the set of HTTP methods supported.
Supported by Silverlight for Windows PhoneContentLengthThe Content-Length header, which specifies the length, in bytes, of the accompanying body data.
Supported by Silverlight for Windows PhoneContentTypeThe Content-Type header, which specifies the MIME type of the accompanying body data.
Supported by Silverlight for Windows PhoneContentEncodingThe Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.
Supported by Silverlight for Windows PhoneContentLanguageThe Content-Langauge header, which specifies the natural language(s) of the accompanying body data.
Supported by Silverlight for Windows PhoneContentLocationThe Content-Location header, which specifies a URI from which the accompanying body may be obtained.
Supported by Silverlight for Windows PhoneContentMd5The Content-MD5 header, which specifies the MD5 digest of the accompanying body data, for the purpose of providing an end-to-end message integrity check.
Supported by Silverlight for Windows PhoneContentRangeThe Content-Range header, which specifies where in the full body the accompanying partial body data should be applied.
Supported by Silverlight for Windows PhoneExpiresThe Expires header, which specifies the date and time after which the accompanying body data should be considered stale.
Supported by Silverlight for Windows PhoneLastModifiedThe Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.
Supported by Silverlight for Windows PhoneAcceptThe Accept header, which specifies the MIME types that are acceptable for the response.
Supported by Silverlight for Windows PhoneAcceptCharsetThe Accept-Charset header, which specifies the character sets that are acceptable for the response.
Supported by Silverlight for Windows PhoneAcceptEncodingThe Accept-Encoding header, which specifies the content encodings that are acceptable for the response.
Supported by Silverlight for Windows PhoneAcceptLanguageThe Accept-Langauge header, which specifies that natural languages that are preferred for the response.
Supported by Silverlight for Windows PhoneAuthorizationThe Authorization header, which specifies the credentials that the client presents in order to authenticate itself to the server.
Supported by Silverlight for Windows PhoneCookieThe Cookie header, which specifies cookie data presented to the server.
Supported by Silverlight for Windows PhoneExpectThe Expect header, which specifies particular server behaviors that are required by the client.
Supported by Silverlight for Windows PhoneFromThe From header, which specifies an Internet E-mail address for the human user who controls the requesting user agent.
Supported by Silverlight for Windows PhoneHostThe Host header, which specifies the host name and port number of the resource being requested.
Supported by Silverlight for Windows PhoneIfMatchThe If-Match header, which specifies that the requested operation should be performed only if the client's cached copy of the indicated resource is current.
Supported by Silverlight for Windows PhoneIfModifiedSinceThe If-Modified-Since header, which specifies that the requested operation should be performed only if the requested resource has been modified since the indicated data and time.
Supported by Silverlight for Windows PhoneIfNoneMatchThe If-None-Match header, which specifies that the requested operation should be performed only if none of client's cached copies of the indicated resources are current.
Supported by Silverlight for Windows PhoneIfRangeThe If-Range header, which specifies that only the specified range of the requested resource should be sent, if the client's cached copy is current.
Supported by Silverlight for Windows PhoneIfUnmodifiedSinceThe If-Unmodified-Since header, which specifies that the requested operation should be performed only if the requested resource has not been modified since the indicated date and time.
Supported by Silverlight for Windows PhoneMaxForwardsThe Max-Forwards header, which specifies an integer indicating the remaining number of times that this request may be forwarded.
Supported by Silverlight for Windows PhoneProxyAuthorizationThe Proxy-Authorization header, which specifies the credentials that the client presents in order to authenticate itself to a proxy.
Supported by Silverlight for Windows PhoneRefererThe Referer header, which specifies the URI of the resource from which the request URI was obtained.
Supported by Silverlight for Windows PhoneRangeThe Range header, which specifies the the sub-range(s) of the response that the client requests be returned in lieu of the entire response.
Supported by Silverlight for Windows PhoneTeThe TE header, which specifies the transfer encodings that are acceptable for the response.
Supported by Silverlight for Windows PhoneTranslateThe Translate header, a Microsoft extension to the HTTP specification used in conjunction with WebDAV functionality.
Supported by Silverlight for Windows PhoneUserAgentThe User-Agent header, which specifies information about the client agent.

The appropriate contents of various headers are described in detail in the HTTP 1.1 specification, available at http://www.w3.org/Protocols/rfc2616/rfc2616.html.

Information on restricted headers are discussed in detail in the documentation for the WebHeaderCollection class

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.