HttpWebRequest Properties
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The HttpWebRequest type exposes the following members.
| Name | Description | |
|---|---|---|
|
Accept | Gets or sets the value of the Accept HTTP header. |
|
AllowAutoRedirect | Gets or sets a value that indicates whether the request should follow redirection responses. |
|
AllowReadStreamBuffering | When overridden in a descendant class, gets or sets a value that indicates whether to buffer the data read from the Internet resource. |
|
AllowWriteStreamBuffering | Gets or sets a value that indicates whether to buffer the data sent to the Internet resource. |
|
ContentLength | Gets for sets the length, in bytes, of content sent by the client. (Overrides WebRequest.ContentLength.) |
|
ContentType | Gets or sets the value of the Content-type HTTP header. (Overrides WebRequest.ContentType.) |
|
ContinueTimeout | Gets or sets a timeout, in milliseconds, to wait until the 100-Continue is received from the server. |
|
CookieContainer | Specifies the collection of CookieCollection objects associated with the HTTP request. |
|
CreatorInstance | When overridden in a descendant class, gets the factory object derived from the IWebRequestCreate class used to create the WebRequest instantiated for making the request to the specified URI. (Inherited from WebRequest.) |
|
Credentials | Gets or sets authentication information for the request. (Overrides WebRequest.Credentials.) |
|
HaveResponse | Gets a value that indicates whether a response has been received from an Internet resource. |
|
Headers | Specifies a collection of the name/value pairs that make up the HTTP headers. (Overrides WebRequest.Headers.) |
|
Method | Gets or sets the method for the request. (Overrides WebRequest.Method.) |
|
RequestUri | Gets the original Uniform Resource Identifier (URI) of the request. (Overrides WebRequest.RequestUri.) |
|
SupportsCookieContainer | Gets a value that indicates whether the CookieContainer property is supported by the HttpWebRequest instance. |
|
UseDefaultCredentials | Gets or sets a Boolean value that controls whether default credentials are sent with requests. (Overrides WebRequest.UseDefaultCredentials.) |
|
UserAgent | Gets or sets the value of the User-agent HTTP header. |
Show: