Properties
AutomaticDecompression
The type of decompression to use, default is none. If you have requested a gzipped or deflated response, specify the correct decompression method to have it automatically decompressed. Both options can be specified by using the logical or operator "|"
Cache
The cache policy that will be associated with requests
Certificates
The collection of security certificates that will be associated with requests. For performance reasons, you shouldn't add a client certificate unless you know the server will ask for it
Cookies
Cookies that will be associated with requests
Credentials
Authentication information that will be associated with requests. Can be of type NetworkCredential or CredentialCache. If you are using basic authentication we recommend setting the authorization header yourself
DownloadBlockSize
Chunk size when downloading data. When HttpCompletionOption is set to StreamResponseContent the progress callback will be raised everytime this amount of data has been downloaded. The default is 10,000 bytes (10 kilobytes)
Headers
Collection of headers to be sent with all requests, note the following restrictions
Header | Notes |
---|---|
Content Length | Set automatically |
Content Type | Set automatically |
Date | Automatically set by the system to the current date |
Host | Automatically set by the system to current host information |
If Modified Since | Should be specified as a DateTime object which as been converted to a string |
Range | Should be specified as a positive or negative integer which indicates an offset (positive from the start, negative from the end) |
Transfer Encoding | Not currently supported |
KeepAlive
Indicates whether to make a persistent connection to the Internet resource. The default is true
Proxy
Proxy information that will be associated with requests
ReadWriteTimeout
Timeout value in milliseconds when reading or writing data to / from the server. If the operation does not complete within this time it will be aborted. The default value is 300,000 milliseconds (5 minutes)
Timeout
Timeout value in milliseconds for opening read / write streams to / from the server. If the operation does not complete within this time it will be aborted. The default value is 100,000 milliseconds (100 seconds)
UploadBlockSize
Chunk size when uploading data. If the UploadStatus callback is specified it will be raised everytime this amount of data has been uploaded. The default is 10,000 bytes (10 kilobytes)