Sample code for 30+ languages & platforms
Xojo Plugin

Example: Http.HttpNoBody method

Demonstrates how to use the HttpNoBody method to send HTTP requests without a request body (e.g., GET, DELETE, HEAD) and receive the response in a Chilkat Http response object.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim http As New Chilkat.Http
Dim resp As New Chilkat.HttpResponse

// Send a DELETE request to https://api.example.com/users/123
Dim url As String
url = "https://api.example.com/users/123"
success = http.HttpNoBody("DELETE",url,resp)
If (success = False) Then
    System.DebugLog(http.LastErrorText)
    Return
End If

System.DebugLog("Response Status Code: " + Str(resp.StatusCode))
System.DebugLog("Response body:")
System.DebugLog(resp.BodyStr)