Export (0) Print
Expand All

HttpWebRequest Properties

The properties of the HttpWebRequest class are listed here. For a complete list of HttpWebRequest class members, see the HttpWebRequest Members topic.

Public Properties

public propertyAccept

Supported by the .NET Compact Framework.

Gets or sets the value of the Accept HTTP header.
public propertyAddress

Supported by the .NET Compact Framework.

Gets the URI of the Internet resource that actually responds to the request.
public propertyAllowAutoRedirect

Supported by the .NET Compact Framework.

Gets or sets a value that indicates whether the request should follow redirection responses.
public propertyAllowWriteStreamBuffering

Supported by the .NET Compact Framework.

Gets or sets a value that indicates whether to buffer the data sent to the Internet resource.
public propertyClientCertificates Gets the collection of security certificates associated with this request.
public propertyConnection

Supported by the .NET Compact Framework.

Gets or sets the value of the Connection HTTP header.
public propertyConnectionGroupName

Supported by the .NET Compact Framework.

Overridden. Gets or sets the name of the connection group for the request.
public propertyContentLength

Supported by the .NET Compact Framework.

Overridden. Gets or sets the Content-length HTTP header.
public propertyContentType

Supported by the .NET Compact Framework.

Overridden. Gets or sets the value of the Content-type HTTP header.
public propertyContinueDelegate

Supported by the .NET Compact Framework.

Gets or sets the delegate method called when an HTTP 100-continue response is received from the Internet resource.
public propertyCookieContainer Gets or sets the cookies associated with the request.
public propertyCredentials

Supported by the .NET Compact Framework.

Overridden. Provides authentication information for the request.
public propertystatic (Shared in Visual Basic)DefaultMaximumResponseHeadersLength Gets or sets the default for the MaximumResponseHeadersLength property.
public propertyExpect

Supported by the .NET Compact Framework.

Gets or sets the value of the Expect HTTP header.
public propertyHaveResponse

Supported by the .NET Compact Framework.

Gets a value indicating whether a response has been received from an Internet resource.
public propertyHeaders

Supported by the .NET Compact Framework.

Overridden. Gets a collection of the name/value pairs that make up the HTTP headers.
public propertyIfModifiedSince

Supported by the .NET Compact Framework.

Gets or sets the value of the If-Modified-Since HTTP header.
public propertyKeepAlive

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to make a persistent connection to the Internet resource.
public propertyMaximumAutomaticRedirections

Supported by the .NET Compact Framework.

Gets or sets the maximum number of redirects that the request will follow.
public propertyMaximumResponseHeadersLength Gets or sets the maximum allowed length of the response headers.
public propertyMediaType

Supported by the .NET Compact Framework.

Gets or sets the media type of the request.
public propertyMethod

Supported by the .NET Compact Framework.

Overridden. Gets or sets the method for the request.
public propertyPipelined

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to pipeline the request to the Internet resource.
public propertyPreAuthenticate

Supported by the .NET Compact Framework.

Overridden. Gets or sets a value indicating whether to send a authenticate header with the request.
public propertyProtocolVersion

Supported by the .NET Compact Framework.

Gets or sets the version of HTTP to use for the request.
public propertyProxy

Supported by the .NET Compact Framework.

Overridden. Gets or sets proxy information for the request.
public propertyReadWriteTimeout
public propertyReferer

Supported by the .NET Compact Framework.

Gets or sets the value of the Referer HTTP header.
public propertyRequestUri

Supported by the .NET Compact Framework.

Overridden. Gets the original URI of the request.
public propertySendChunked

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to send data in segments to the Internet resource.
public propertyServicePoint

Supported by the .NET Compact Framework.

Gets the service point to use for the request.
public propertyTimeout

Supported by the .NET Compact Framework.

Overridden. Gets or sets the time-out value for a request.
public propertyTransferEncoding

Supported by the .NET Compact Framework.

Gets or sets the value of the Transfer-encoding HTTP header.
public propertyUnsafeAuthenticatedConnectionSharing Gets or sets a value indicating whether to allow NTLM-authenticated connection sharing.
public propertyUserAgent

Supported by the .NET Compact Framework.

Gets or sets the value of the User-agent HTTP header.

See Also

HttpWebRequest Class | System.Net Namespace

Show:
© 2014 Microsoft