WebClient Class
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9147)
Provides simple methods to upload and download data from HTTP/HTTPS servers.
Syntax
public class WebClient : IDisposable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
Web |
Initializes a new instance of the Web |
Web |
Initializes a new instance of the Web |
Properties
Name | Description |
---|---|
Base |
Gets or sets the base address to simplify multiple requests to one server. |
Credentials | Get or sets network credentials to identify a user. |
Encoding | Gets or sets the encoding to be used for string upload and download. |
Headers | Get or sets a collection of HTTP headers to send with a request. |
Log |
Gets or sets the Log |
Proxy | Gets or sets the network proxy to use to access a remote server. |
Query |
Gets or sets the collection of name-value pairs, which will be added into the request's query. |
Response |
Gets or sets a collection of HTTP headers associated with the response. |
Settings | Gets TLS/SSL settings. |
Timeout | Gets or sets the length of time in milliseconds before the request times out (specify -1 or 0 to indicate that the request does not time out; minimal value is 1000). |
Methods
Name | Description |
---|---|
Cancel() | Cancels all currently running requests. |
Dispose() | Disposes the WebClient object. |
Download |
Downloads data from provided URI. |
Download |
Downloads data from provided URI. |
Download |
Begins asynchronous DownloadData operation. Downloads data from provided URI. |
Download |
Begins asynchronous DownloadData operation. Downloads data from provided URI. |
Download |
Downloads data from provided URI and save them to the file. |
Download |
Downloads data from provided URI and save them to the file. |
Download |
Begins asynchronous DownloadFile operation. Downloads data from provided URI and save them to the file. |
Download |
Begins asynchronous DownloadFile operation. Downloads data from provided URI and save them to the file. |
Download |
Downloads a resource from provided URI as a string. |
Download |
Downloads a resource from provided URI as a string. |
Download |
Begins asynchronous DownloadString operation. Downloads a resource from provided URI as a string. |
Download |
Begins asynchronous DownloadString operation. Downloads a resource from provided URI as a string. |
Get |
Downloads headers for provided URI using HEAD request. |
Get |
Downloads headers for provided URI using HEAD request. |
Get |
Begins asynchronous GetHeaders operation. Downloads headers for provided URI using HEAD request. |
Get |
Begins asynchronous GetHeaders operation. Downloads headers for provided URI using HEAD request. |
Open |
Opens a stream that contains data retrieved from provided URI. |
Open |
Opens a stream that contains data retrieved from provided URI. |
Open |
Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI. |
Open |
Begins asynchronous OpenRead operation. Opens a stream that contains data retrieved from provided URI. |
Open |
Opens a stream that is used to send data to provided URI. |
Open |
Opens a stream that is used to send data to provided URI. |
Open |
Opens a stream that is used to send data to provided URI. |
Open |
Opens a stream that is used to send data to provided URI. |
Open |
Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI. |
Open |
Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI. |
Open |
Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI. |
Open |
Begins asynchronous OpenWrite operation. Opens a stream that is used to send data to provided URI. |
Set |
Sets the socket factory to be used to create communication sockets. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadData operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadData operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadData operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadData operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a file to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadFile operation. Uploads a file to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadFile operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadFile operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Begins asynchronous UploadFile operation. Uploads a data to provided URI and returns a response data of the upload operation. |
Upload |
Uploads a string to provided URI as a new resource. |
Upload |
Uploads a string to provided URI as a new resource. |
Upload |
Uploads a string to provided URI as a new resource. |
Upload |
Uploads a string to provided URI as a new resource. |
Upload |
Begins asynchronous UploadString operation. Uploads a string to provided URI as a new resource. |
Upload |
Begins asynchronous UploadString operation. Uploads a string to provided URI as a new resource. |
Upload |
Begins asynchronous UploadString operation. Uploads a string to provided URI as a new resource. |
Upload |
Begins asynchronous UploadString operation. Uploads a string to provided URI as a new resource. |
Upload |
Uploads a name/value collection to a specified URI. |
Upload |
Uploads a name/value collection to a specified URI. |
Upload |
Uploads a name/value collection to a specified URI. |
Upload |
Uploads a name/value collection to a specified URI. |
Upload |
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI. |
Upload |
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI. |
Upload |
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI. |
Upload |
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI. |
Events
Name | Description |
---|---|
Download |
Occurs when download progress has changed. |
Upload |
Occurs when upload progress has changed. |
Validating |
Occurs when a server certificate needs to be validated. |