SocketTools .NET Edition

HttpClient.HttpEncoding Enumeration

Specifies the encoding types supported by the HttpClient class.

[Visual Basic]
Public Enum HttpClient.HttpEncoding
[C#]
public enum HttpClient.HttpEncoding

Remarks

The HttpClient class uses the HttpEncoding enumeration to specify the type of encoding to be used when data is submitted to the server for processing.

Members

Member Name Description
encodingNone No encoding will be applied to the content of a request, and no Content-Type header will be generated.
encodingURL Standard URL encoding will be applied to the content of a request, and a Content-Type header will be generated with the value "application/x-www-form-urlencoded". This is the default encoding type.
encodingXML Standard URL encoding will be applied to the content of a request, except that spaces will not be replaced by '+'. This encoding type is intended for use with XML parsers that do not recognize '+' as a space. A Content-Type header will be generated with the value "application/x-www-form-urlencoded".

Requirements

Namespace: SocketTools

Assembly: SocketTools.HttpClient (in SocketTools.HttpClient.dll)

See Also

SocketTools Namespace