The WebRequest type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| WebRequest |
Initializes a new instance of the
[!:System.Net.WebRequest] class.
|
Methods
| Name | Description | |
|---|---|---|
| Create(String) |
Initializes a new WebRequest instance for the
specified URI scheme, such as http://, https://, or file://.
| |
| Create(Uri) |
Creates a WebRequest.
| |
| Dispose()()()() | ||
| Dispose(Boolean) | ||
| Finalize | (Overrides Object..::..Finalize()()()().) | |
| GetRequestStream |
When overridden in a descendant class, returns a
Stream for writing data to the Internet resource.
| |
| GetResponse |
When overridden in a descendant class, returns a response to an
Internet request.
| |
| RegisterPrefix |
Registers a WebRequest descendant for the
specified URI.
|
Properties
| Name | Description | |
|---|---|---|
| ConnectionGroupName |
When overridden in a descendant class, gets or sets the name of the
connection group for the request.
| |
| ContentLength |
When overridden in a descendant class, gets or sets the content
length of the request data being sent.
| |
| ContentType |
When overridden in a descendant class, gets or sets the content type
of the request data being sent.
| |
| DefaultWebProxy |
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.
| |
| Headers |
When overridden in a descendant class, gets or sets the collection
of header name/value pairs associated with the request.
| |
| Method |
When overridden in a descendant class, gets or sets the protocol
method to use in this request.
| |
| Proxy |
When overridden in a descendant class, gets or sets the network
proxy to use to access this Internet resource.
| |
| RequestUri |
When overridden in a descendant class, gets the URI of the Internet
resource associated with the request.
| |
| Timeout |
Gets or sets the length of time, in milliseconds, before the request
times out.
|