SocketTools .NET Edition

HttpClient Properties

The properties of the HttpClient class are listed below. For a complete list of HttpClient class members, see the HttpClient Members topic.

Public Instance Properties

Authentication Gets and sets the method used to authenticate the client session.
AutoRedirect Gets and sets a value that specifies if redirected resources are handled automatically.
AutoResolve Gets and sets a value that determines if host names and addresses are automatically resolved.
BearerToken Gets and sets the bearer token used with OAuth 2.0 authentication.
Blocking Gets and sets a value which indicates if the client is in blocking mode.
CertificateExpires Get a value that specifies the date that the security certificate expires.
CertificateIssued Get a value that specifies the date that the security certificate was issued.
CertificateIssuer Get a value that provides information about the organization that issued the certificate.
CertificateName Gets and sets a value that specifies the name of the client certificate.
CertificatePassword Gets and sets the password associated with the client certificate.
CertificateStatus Gets a value which indicates the status of the security certificate returned by the remote host.
CertificateStore Gets and sets a value that specifies the name of the local certificate store.
CertificateSubject Gets a value that provides information about the organization that the server certificate was issued to.
CertificateUser Gets and sets the user that owns the client certificate.
CipherStrength Gets a value that indicates the length of the key used by the encryption algorithm for a secure connection.
CodePage Gets and sets a value that specifies the code page used to perform text conversions. enabled.
Compression Gets and sets a value that specifies if data compression should be enabled.
ContentLength Returns a value that specifies the content length for the current resource.
ContentType Gets and sets a value that specifies the content type for the current resource.
CookieCount Gets the number of cookies set by the server in response to a request for a resource.
Encoding Gets and sets the content encoding type.
FormAction Gets and sets the path to the script that will accept the form data on the server.
FormMethod Gets and sets the method used to submit the form data.
FormType Gets and sets the type of encoding used to submit the form data.
Handle Gets a value that specifies the client handle allocated for the current session.
HashStrength Gets a value which specifies the length of the message digest that was selected for a secure connection.
HeaderField Gets and sets the name of the current header field.
HeaderValue Gets the value of a response header field or sets the value of a request header field.
HostAddress Gets and sets a value which specifies the Internet address used to establish a connection.
HostName Gets and sets a value which specifies the host name used to establish a connection.
IsBlocked Gets a value which indicates if the current thread is performing a blocking client operation.
IsConnected Gets a value which indicates if a connection to the remote host has been established.
IsInitialized Gets a value which indicates if the current instance of the class has been initialized successfully.
IsReadable Gets a value which indicates if there is data available to be read from the socket connection to the server.
IsWritable Gets a value which indicates if data can be written to the client without blocking.
KeepAlive Gets and sets a Boolean value that specifies if the connection to the server is persistent.
LastError Gets and sets a value which specifies the last error that has occurred.
LastErrorString Gets a value which describes the last error that has occurred.
LocalAddress Gets the local Internet address that the client is bound to.
Localize Gets and sets a value which specifies if date values are localized to the current timezone.
LocalName Gets a value which specifies the host name for the local system.
LocalPort Gets the local port number the client is bound to.
Options Gets and sets a value which specifies one or more client options.
Password Gets and sets the password used to authenticate the client session.
Priority Gets and sets a value which specifies the priority of data transfers.
ProtocolVersion Gets and sets a value which specifies the default protocol version.
ProxyHost Gets and sets the hostname or IP address of a proxy server.
ProxyPassword Gets and sets the password used to authenticate the connection to a proxy server.
ProxyPort Gets and sets a value that specifies the proxy server port number.
ProxyType Gets and sets the type of proxy server the client will use to establish a connection.
ProxyUser Gets and sets the username used to authenticate the connection to a proxy server.
RemotePort Gets and sets a value which specifies the remote port number.
RemoteService Gets and sets a value which specifies the remote service.
Resource Gets and sets a value which specifies a resource on the server.
ResultCode Gets a value which specifies the last result code returned by the server.
ResultString Gets a string value which describes the result of the previous command.
Secure Gets and sets a value which specifies if a secure connection is established.
SecureCipher Gets a value that specifies the encryption algorithm used for a secure connection.
SecureHash Gets a value that specifies the message digest algorithm used for a secure connection.
SecureKeyExchange Gets a value that specifies the key exchange algorithm used for a secure connection.
SecureProtocol Gets and sets a value which specifies the protocol used for a secure connection.
Status Gets a value which specifies the current status of the client.
TaskCount Get the number of active background file transfers.
TaskId Get the task identifier for the last background file transfer.
TaskList Get an array of active background task identifiers.
ThreadModel Gets and sets a value which specifies the threading model for the class instance.
ThrowError Gets and sets a value which specifies if method calls should throw exceptions when an error occurs.
Timeout Gets and sets a value which specifies a timeout period in seconds.
TimeZone Gets and sets the current timezone offset in seconds.
Trace Gets and sets a value which indicates if network function logging is enabled.
TraceFile Gets and sets a value which specifies the name of the logfile.
TraceFlags Gets and sets a value which specifies the client function tracing flags.
TransferBytes Gets a value which specifies the number of bytes transferred to or from the server.
TransferRate Gets a value which specifies the data transfer rate in bytes per second.
TransferTime Gets a value which specifies the number of seconds elapsed during a data transfer.
URL Gets and sets the current URL used to access a file on the server.
UserAgent Gets and sets the current user agent value which identifies the application.
UserName Gets and sets the username used to authenticate the client session.
Version Gets a value which returns the current version of the HttpClient class library.

See Also

HttpClient Class | SocketTools Namespace