HTTPSocket.SendRequest

From Xojo Documentation

Method

HTTPSocket.SendRequest(Method as String,URL as String, [File as FolderItem])

New in 2008r5

Supported for all project types and targets.

Allows the user to asynchronously send a request using an HTTP method other than GET or POST. Supply the method as a String, URL as a String and an optional FolderItem.


Method

HTTPSocket.SendRequest(Method as String,URL as String, Timeout as Integer) As String

New in 2008r5

Supported for all project types and targets.

Allows the user to synchronously send a request using an HTTP method other than GET or POST. Specify the method as a String, URL as a String and the timeout as an Integer value. Returns data as a String

HTTPSocket.ErrorCode is -1 if the Timeout value is reached.


Method

HTTPSocket.SendRequest(Method as String,URL as String, File as FolderItem, Timeout As Integer) As Boolean

New in 2008r5

Supported for all project types and targets.

Allows the user to synchronously send a request using an HTTP method other than GET or POST. Supply the method as a String, URL as a String and a FolderItem. Return a Boolean to indicate if it was successful. Data is saved to the FolderItem.

HTTPSocket.ErrorCode is -1 if the Timeout value is reached.

Notes

Common others methods are OPTIONS, HEAD, PUT, DELETE, TRACE and CONNECT as per RFC 2616 describing the HTTP 1.1 protocol.