HttpWebRequest Properties
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The HttpWebRequest type exposes the following members.
Properties
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 | When overridden in a descendant class, gets or sets a value that indicates whether to buffer the data written to the Internet resource. | |
ContentLength | When overridden in a descendant class, gets or sets the content length of the request data being sent. (Inherited from WebRequest.) | |
ContentType | Gets or sets the value of the Content-type HTTP header. (Overrides WebRequest.ContentType.) | |
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 | When overridden in a descendant class, gets or sets the network credentials used for authenticating the request with the Internet resource. (Inherited from WebRequest.) In Silverlight for Windows Phone, this member is overridden by Credentials. In XNA Framework, this member is overridden by 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 | When overridden in a descendant class, gets or sets a Boolean value that controls whether default credentials are sent with requests. (Inherited from WebRequest.) | |
UserAgent | Gets or sets the value of the User-agent HTTP header. |
Top