The HttpRequest type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkHttpRequest
Create a HTTP request targeting specific URI.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAbort
Cancels request. This will make the current (or subsequent) request fail with WebException error with
 Copy imageCopy Code
Status
of RequestCanceled.
(Overrides WebRequest..::..Abort()()()().)
Public methodSupported by the .NET Compact FrameworkAddRange(Int64)
Adds HTTP Range header to the request with 'bytes' unit.
Public methodSupported by the .NET Compact FrameworkAddRange(Int64, Int64)
Adds HTTP Range header to the request with 'bytes' unit.
Public methodSupported by the .NET Compact FrameworkAddRange(String, Int64)
Adds HTTP Range header to the request.
Public methodSupported by the .NET Compact FrameworkAddRange(String, Int64, Int64)
Adds HTTP Range header to the request.
Public methodSupported by the .NET Compact FrameworkBeginGetRequestStream
Begins asynchronous GetRequestStream operation. Returns request stream that the request data can be written to as an asynchronous operation. Returns writable stream.
(Overrides WebRequest..::..BeginGetRequestStream(AsyncCallback, Object).)
Public methodSupported by the .NET Compact FrameworkBeginGetResponse
Begins asynchronous GetResponse operation. Returns a response for this request as asynchronous operation. If the response was retrieved once, return that response.
(Overrides WebRequest..::..BeginGetResponse(AsyncCallback, Object).)
Public methodSupported by the .NET Compact FrameworkCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkEndGetRequestStream
Ends an asynchronous BeginGetRequestStream operation.
(Overrides WebRequest..::..EndGetRequestStream(IAsyncResult).)
Public methodSupported by the .NET Compact FrameworkEndGetResponse
Ends an asynchronous BeginGetResponse operation.
(Overrides WebRequest..::..EndGetResponse(IAsyncResult).)
Public methodSupported by the .NET Compact FrameworkEquals (Overrides Object..::..Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode (Overrides Object..::..GetHashCode()()()().)
Public methodSupported by the .NET Compact FrameworkGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkGetRequestStream
Returns request stream that the request data can be written to.
(Overrides WebRequest..::..GetRequestStream()()()().)
Public methodSupported by the .NET Compact FrameworkGetResponse
Returns a response for this request. If the response was retrieved once, return that response.
(Overrides WebRequest..::..GetResponse()()()().)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkAccept
Gets or sets HTTP Accept header.
Public propertySupported by the .NET Compact FrameworkAddress
Gets target URI final request connects to. When redirected, this is the URI the final response is retrieved.
Public propertySupported by the .NET Compact FrameworkAllowAutoRedirect
Gets or sets a value indicating whether the request should handle redirects, if the response have sufficient information.
Public propertySupported by the .NET Compact FrameworkAllowWriteStreamBuffering
Gets or sets a value indicating whether to buffer the data sent to server.
Public propertySupported by the .NET Compact FrameworkAutomaticDecompression
Gets or sets the method(s) that can be used for automatic decompression of the response stream; Both GZip and Deflate by default.
Public propertySupported by the .NET Compact FrameworkClientCertificates
Gets or sets a collection of client certificates for the request.
Public propertySupported by the .NET Compact FrameworkConnection
Gets or sets HTTP Connection header.
Public propertySupported by the .NET Compact FrameworkConnectionGroupName
Gets or sets the name of the connection group for the request. Not supported yet.
(Overrides WebRequest..::..ConnectionGroupName.)
Public propertySupported by the .NET Compact FrameworkContentLength
Gets or sets HTTP Content-Length header.
(Overrides WebRequest..::..ContentLength.)
Public propertySupported by the .NET Compact FrameworkContentType
Gets or sets HTTP Content-Type header.
(Overrides WebRequest..::..ContentType.)
Public propertySupported by the .NET Compact FrameworkContinueTimeout
Gets or sets a timeout in milliseconds, which determines how long to wait for the '100 Continue' response from the server. If the '100 Continue' response is not received within the timeout, request body is send to the server.

Zero means no waiting.

Default value is 350.

Public propertySupported by the .NET Compact FrameworkCredentials
Get or sets network credentials to identify a user.
(Overrides WebRequest..::..Credentials.)
Public propertySupported by the .NET Compact FrameworkExpect
Gets or sets HTTP Expect header.
Public propertySupported by the .NET Compact FrameworkExpect100Continue
Gets or sets a value indicating whether to automatically add 'Expect: 100-continue' header to the request.

Default value is true.

Public propertySupported by the .NET Compact FrameworkHaveResponse
Gets a value whether the response was already received for this request.
Public propertySupported by the .NET Compact FrameworkHeaders
Get or sets a collection of HTTP headers to send with a request.
(Overrides WebRequest..::..Headers.)
Public propertySupported by the .NET Compact FrameworkIfModifiedSince
Gets or sets HTTP If-Modified-Since header.
Public propertySupported by the .NET Compact FrameworkKeepAlive
Gets or sets HTTP Connection header with proper values associated with keep alive mode.
Public propertySupported by the .NET Compact FrameworkMaximumAutomaticRedirections
Gets or sets maximum redirection attempts to complete the request.
Public propertySupported by the .NET Compact FrameworkMethod
Gets or sets HTTP method that this request uses.
(Overrides WebRequest..::..Method.)
Public propertySupported by the .NET Compact FrameworkPreAuthenticate
Indicates whether to pre-authenticate the request.
(Overrides WebRequest..::..PreAuthenticate.)
Public propertySupported by the .NET Compact FrameworkProxy Obsolete.
Public propertySupported by the .NET Compact FrameworkReferer
Gets or sets HTTP Referer header.
Public propertySupported by the .NET Compact FrameworkRequestUri
Gets original URI of the request.
(Overrides WebRequest..::..RequestUri.)
Public propertySupported by the .NET Compact FrameworkSendChunked
Gets or sets a value that indicates whether to send request content in 'chunked' mode.
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out).
(Overrides WebRequest..::..Timeout.)
Public propertySupported by the .NET Compact FrameworkTransferEncoding
Public propertySupported by the .NET Compact FrameworkUserAgent
Gets or sets HTTP User-Agent header.

See Also