SocketTools .NET Edition

HttpClient.HttpFormMethod Enumeration

Specifies the methods supported by the HttpClient class when submitting form data to a server.

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

Remarks

The HttpClient class uses the HttpFormMethod enumeration to specify the method that should be used when submitting form data to a server for processing.

Members

Member Name Description
methodDefault The form data should be submitted using the default method, using the GET command.
methodGet The form data should be submitted using the GET command. This method should be used when the amount of form data is relatively small. If the total amount of form data exceeds 2048 bytes, it is recommended that the POST method be used instead.
methodPost The form data should be submitted using the POST command. This is the preferred method of submitting larger amounts of form data. If the total amount of form data exceeds 2048 bytes, it is recommended that the POST method be used.

Requirements

Namespace: SocketTools

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

See Also

SocketTools Namespace