HttpWebRequest Properties

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.

  NameDescription
Public property Accept Gets or sets the value of the Accept HTTP header.
Public property AllowAutoRedirect Gets or sets a value that indicates whether the request should follow redirection responses.
Public property 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 Gets or sets a value that indicates whether to buffer the data sent to the Internet resource.
Public property ContentLength Gets for sets the length, in bytes, of content sent by the client. (Overrides WebRequest.ContentLength.)
Public property ContentType Gets or sets the value of the Content-type HTTP header. (Overrides WebRequest.ContentType.)
Public property ContinueTimeout Gets or sets a timeout, in milliseconds, to wait until the 100-Continue is received from the server.
Public property CookieContainer Specifies the collection of CookieCollection objects associated with the HTTP request.
Public property 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 property Credentials Gets or sets authentication information for the request. (Overrides WebRequest.Credentials.)
Public property HaveResponse Gets a value that indicates whether a response has been received from an Internet resource.
Public property Headers Specifies a collection of the name/value pairs that make up the HTTP headers. (Overrides WebRequest.Headers.)
Public property Method Gets or sets the method for the request. (Overrides WebRequest.Method.)
Public property RequestUri Gets the original Uniform Resource Identifier (URI) of the request. (Overrides WebRequest.RequestUri.)
Public property SupportsCookieContainer Gets a value that indicates whether the CookieContainer property is supported by the HttpWebRequest instance.
Public property UseDefaultCredentials Gets or sets a Boolean value that controls whether default credentials are sent with requests. (Overrides WebRequest.UseDefaultCredentials.)
Public property UserAgent Gets or sets the value of the User-agent HTTP header.
Top

Show:
© 2017 Microsoft