From Xojo Documentation


HTTPSocket.SetRequestContent(Content as String, ContentType as String)

Supported for all project types and targets.

Sets the content data and content type to be sent to the server for any command except HEAD.


If you will be reusing a socket without using the New operator, you must clear this value for requests that do not have content associated with them. For instance, If you do a POST with content followed by a GET that should not have content, you should set the content to an empty string.


Set request content:

Dim data As String = "ID=1234"
MySocket.SetRequestContent(data, "application/x-www-form-urlencoded")