Utility function for performing synchronous HTTP Requests.
HTTP Method, such as POST, GET, etc.
The URL you wish to address.
The content-type of the payload you are sending, such as application/json.
The payload sending to the URL.
Utility function for performing synchronous HTTP Requests.
Visual Basic |
---|
Public Sub HTTP( _ ByVal Method As String, _ ByVal url As String, _ ByVal ContentType As String, _ ByVal Payload As String _ ) |
HTTP Method, such as POST, GET, etc.
The URL you wish to address.
The content-type of the payload you are sending, such as application/json.
The payload sending to the URL.
This is a helper method for synchronous HTTP POST or GET requests, intended for JSON transfers and WebSocket initialization.