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
Public propertySupported by Silverlight for Windows Phone Accept Gets or sets the value of the Accept HTTP header.
Public propertySupported by Silverlight for Windows Phone AllowAutoRedirect Gets or sets a value that indicates whether the request should follow redirection responses.
Public propertySupported by Silverlight for Windows Phone AllowReadStreamBuffering When overridden in a descendant class, gets or sets a value that indicates whether to buffer the data read from the Internet resource.
Public property AllowWriteStreamBuffering When overridden in a descendant class, gets or sets a value that indicates whether to buffer the data written to the Internet resource.
Public property ContentLength When overridden in a descendant class, gets or sets the content length of the request data being sent. (Inherited from WebRequest.)
Public propertySupported by Silverlight for Windows Phone ContentType Gets or sets the value of the Content-type HTTP header. (Overrides WebRequest.ContentType.)
Public propertySupported by Silverlight for Windows Phone CookieContainer Specifies the collection of CookieCollection objects associated with the HTTP request.
Public propertySupported by Silverlight for Windows Phone 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.)
Public propertySupported by Silverlight for Windows Phone 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.
Public propertySupported by Silverlight for Windows Phone HaveResponse Gets a value that indicates whether a response has been received from an Internet resource.
Public propertySupported by Silverlight for Windows Phone Headers Specifies a collection of the name/value pairs that make up the HTTP headers. (Overrides WebRequest.Headers.)
Public propertySupported by Silverlight for Windows Phone Method Gets or sets the method for the request. (Overrides WebRequest.Method.)
Public propertySupported by Silverlight for Windows Phone RequestUri Gets the original Uniform Resource Identifier (URI) of the request. (Overrides WebRequest.RequestUri.)
Public propertySupported by Silverlight for Windows Phone SupportsCookieContainer Gets a value that indicates whether the CookieContainer property is supported by the HttpWebRequest instance.
Public propertySupported by Silverlight for Windows Phone 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.)
Public propertySupported by Silverlight for Windows Phone UserAgent Gets or sets the value of the User-agent HTTP header.

Top