System.Net.HttpWebRequest: Property Members

The properties of System.Net.HttpWebRequest are listed below. For a list of all members, see the HttpWebRequest Members list.

See Also: Inherited members from System.Net.WebRequest

Public Properties

Acceptstring.

Gets or sets the value of the Accept HTTP header.

[read-only]
AddressUri.

Gets the Uniform Resource Identifier (URI) of the Internet resource that actually responds to the request.

AllowAutoRedirectbool.

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

AllowReadStreamBufferingbool.

Gets or sets a value that indicates whether to buffer the received from the Internet resource.

AllowWriteStreamBufferingbool.

Gets or sets a value that indicates whether to buffer the data sent to the Internet resource.

AutomaticDecompressionDecompressionMethods.

Gets or sets the type of decompression that is used.

ClientCertificatesSystem.Security.Cryptography.X509Certificates.X509CertificateCollection.

Gets or sets the collection of security certificates that are associated with this request.

Connectionstring.

Gets or sets the value of the Connection HTTP header.

override
ConnectionGroupNamestring.

Gets or sets the name of the connection group for the request.

override
ContentLengthlong.

Gets or sets the Content-length HTTP header.

override
ContentTypestring.

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

ContinueDelegateHttpContinueDelegate.

Gets or sets the delegate method called when an HTTP 100-continue response is received from the Internet resource.

ContinueTimeoutint.

Gets or sets a timeout, in milliseconds, to wait until the 100-Continue is received from the server.

CookieContainerCookieContainer.

Gets or sets the cookies associated with the request.

override
CredentialsICredentials.

Gets or sets authentication information for the request.

DateDateTime.

Get or set the Date HTTP header value to use in an HTTP request.

static
DefaultCachePolicySystem.Net.Cache.RequestCachePolicy.

Gets or sets the default cache policy for this request.

static
DefaultMaximumErrorResponseLengthint.

Gets or sets the default maximum length of an HTTP error response.

static
DefaultMaximumResponseHeadersLengthint.

Gets or sets the default for the HttpWebRequest.MaximumResponseHeadersLength property.

Expectstring.

Gets or sets the value of the Expect HTTP header.

[read-only]
HaveResponsebool.

Gets a value that indicates whether a response has been received from an Internet resource.

override
HeadersWebHeaderCollection.

Specifies a collection of the name/value pairs that make up the HTTP headers.

Hoststring.

Get or set the Host header value to use in an HTTP request independent from the request URI.

IfModifiedSinceDateTime.

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

KeepAlivebool.

Gets or sets a value that indicates whether to make a persistent connection to the Internet resource.

MaximumAutomaticRedirectionsint.

Gets or sets the maximum number of redirects that the request follows.

MaximumResponseHeadersLengthint.

Gets or sets the maximum allowed length of the response headers.

MediaTypestring.

Gets or sets the media type of the request.

override
Methodstring.

Gets or sets the method for the request.

Pipelinedbool.

Gets or sets a value that indicates whether to pipeline the request to the Internet resource.

override
PreAuthenticatebool.

Gets or sets a value that indicates whether to send an Authorization header with the request.

ProtocolVersionVersion.

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

override
ProxyIWebProxy.

Gets or sets proxy information for the request.

ReadWriteTimeoutint.

Gets or sets a time-out in milliseconds when writing to or reading from a stream.

Refererstring.

Gets or sets the value of the Referer HTTP header.

[read-only]
override
RequestUriUri.

Gets the original Uniform Resource Identifier (URI) of the request.

SendChunkedbool.

Gets or sets a value that indicates whether to send data in segments to the Internet resource.

[read-only]
ServicePointServicePoint.

Gets the service point to use for the request.

[read-only]
SupportsCookieContainerbool.

Gets a value that indicates whether the request provides support for a System.Net.CookieContainer.

override
Timeoutint.

Gets or sets the time-out value in milliseconds for the HttpWebRequest.GetResponse and HttpWebRequest.GetRequestStream methods.

TransferEncodingstring.

Gets or sets the value of the Transfer-encoding HTTP header.

UnsafeAuthenticatedConnectionSharingbool.

Gets or sets a value that indicates whether to allow high-speed NTLM-authenticated connection sharing.

override
UseDefaultCredentialsbool.

Gets or sets a bool value that controls whether default credentials are sent with requests.

UserAgentstring.

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