Http |
The HttpClient type exposes the following members.
| Name | Description | |
|---|---|---|
| Accept | Gets or sets content types that are acceptable for the response. The default value is "text/html, image/gif, image/jpeg, image/png, */*". | |
| AllowAutoRedirect | Gets or sets a value that indicates whether the request should follow redirection responses (HTTP codes from 300 to 399). Default Value: true | |
| Binding | Obsolete. Obsolete - Please use BindingV4 and BindingV6 instead. (Inherited from Client) | |
| BindingV4 |
Gets the binding which provides properties and methods such as address family, IPv4 address, port number etc for client to connect to the host network.
(Inherited from Client) | |
| BindingV6 |
Gets the binding which provides properties and methods such as address family, IPv6 address, port number etc for client to connect to the host network.
(Inherited from Client) | |
| ConnectionClass |
Use the ConnectionClass property to specify an alternative Connection class to be used for out coming data connections.
Existing connections are not affected by changing the property.
(Inherited from Client) | |
| ConnectionPool |
Get or set the Connection Pool for this Client Instance.
(Inherited from Client) | |
| CustomConnectionPool | Gets or sets the custom connection pool. This property is inherited from the Client class. | |
| DnsResolveType |
Determines if the specified HostName should be looked up only:
Once per application run (if you establish multiple connections to the server, the subsequent connections will use the cached IPAddress) or
Always, for each connect (the Hostname will be resolved again for each subsequent connect).
You'll usually only change this setting off the default (Once) if you anticipate the IPAddress of the target host to change frequently.
(Inherited from Client) | |
| EnableNagle |
Set the property value to true to enable the Nagle algorithm for send coalescing.
(Inherited from Client) | |
| HostAddress |
Gets or sets a Client Host IP Address as a string.
(Inherited from Client) | |
| HostName |
The server host name or IP address that you intend the client to connect to.
(Inherited from Client) | |
| KeepAlive | Controls whether to use HTTP Keep-Alive to keep the connection alive between requests. If enabled (true) , once a request is made and a connection is established, this connection is kept open and used for future requests. If disabled, the connection is closed, and a new connection is created for future requests. | |
| MaximumAutomaticRedirections | Gets or sets the maximum number of redirects that the request follows. Default Value: 20 | |
| Password | Password that will be inserted into the Authorization HTTP header in the request to the server. | |
| Port |
The server Port that you intend the client to connect to.
If you do not assign a port number on this property, the port number in the parsed URL will be used. If a port number is assigned in the parsed URL, it will take precedence over this property. (Inherited from Client) | |
| ProcessBusy | If using commands with callbacks, check this busy flag before using another command (Dispatch, Get, Post, etc.) | |
| Timeout | Gets or sets the maximum amount of time (in seconds) that a client will wait for a server response within a single request. The default value is 60 seconds (1 minute). The timeout handling can be activated via the TimeoutEnabled property. | |
| TimeoutEnabled | This property controls whether the request operation will do an automatic timeout checking. If timeout handling is turned on (i.e. this property is set to true) and a request takes longer than Timeout, it will be terminated. | |
| Url | Gets or sets the URL of the remote server. | |
| UseConnectionPooling | Enables or disables connection pooling. | |
| UserAgent | Gets or sets the identifier of the software being used to retrieve data via the URL. Some custom HTTP servers check this HTTP header to provide content optimized for particular HTTP browsers. | |
| UserName | Name that will be inserted into the Authorization HTTP header in the request to the server. | |
| UserObject | Gets the last user specified Object for the Async operations on this HTTP Client instance. The return value will evaluate to null if Async operations with the object parameter are not utilized. | |
| Verbose | Set Logging to Verbose on/off | |
| Version | Gets or sets the version identifier of the UserAgent. Can be used to mimic particular browsers like Internet Explorer 6.0 |