The WebRequest type exposes the following members.

Constructors

  NameDescription
Protected methodWebRequest
Initializes a new instance of the [!:System.Net.WebRequest] class.

Methods

  NameDescription
Public methodStatic memberCreate(String)
Initializes a new WebRequest instance for the specified URI scheme, such as http://, https://, or file://.
Public methodStatic memberCreate(Uri)
Creates a WebRequest.
Public methodDispose()()()()
Protected methodDispose(Boolean)
Protected methodFinalize (Overrides Object..::..Finalize()()()().)
Public methodGetRequestStream
When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
Public methodGetResponse
When overridden in a descendant class, returns a response to an Internet request.
Public methodStatic memberRegisterPrefix
Registers a WebRequest descendant for the specified URI.

Properties

  NameDescription
Public propertyConnectionGroupName
When overridden in a descendant class, gets or sets the name of the connection group for the request.
Public propertyContentLength
When overridden in a descendant class, gets or sets the content length of the request data being sent.
Public propertyContentType
When overridden in a descendant class, gets or sets the content type of the request data being sent.
Public propertyStatic memberDefaultWebProxy
Gets or sets the global HTTP proxy. The DefaultWebProxy property determines the default proxy that all WebRequest instances use if the request supports proxies and no proxy is set explicitly using the Proxy property. Proxies are currently supported by HttpWebRequest.
Public propertyHeaders
When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request.
Public propertyMethod
When overridden in a descendant class, gets or sets the protocol method to use in this request.
Public propertyProxy
When overridden in a descendant class, gets or sets the network proxy to use to access this Internet resource.
Public propertyRequestUri
When overridden in a descendant class, gets the URI of the Internet resource associated with the request.
Public propertyTimeout
Gets or sets the length of time, in milliseconds, before the request times out.

See Also