http

Functions for making HTTP requests.

Summary
httpFunctions for making HTTP requests.
Exceptions
HttpExceptionRaised when an HTTP request returns anything other than 200 OK.
Functions
getPerform an HTTP GET operation with the specified url.
postPerform an HTTP POST operation with the specified url and post data.

Exceptions

HttpException

Raised when an HTTP request returns anything other than 200 OK.

Functions

get

DECLARE EXTENSION FUNCTION get(
   url: String,
   requestHeaders: Dictionary<String>,
   OUT responseHeaders: Array<String> DEFAULT _
): Bytes

Perform an HTTP GET operation with the specified url.

Parameters

urlthe url
headersthe response headers from the server

post

DECLARE EXTENSION FUNCTION post(
   url: String,
   post_data: String,
   requestHeaders: Dictionary<String>,
   OUT responseHeaders: Array<String> DEFAULT _
): Bytes

Perform an HTTP POST operation with the specified url and post data.

Parameters

urlthe url
post_datathe body of the POST request
headersthe response headers from the server
DECLARE EXTENSION FUNCTION get(
   url: String,
   requestHeaders: Dictionary<String>,
   OUT responseHeaders: Array<String> DEFAULT _
): Bytes
Perform an HTTP GET operation with the specified url.
DECLARE EXTENSION FUNCTION post(
   url: String,
   post_data: String,
   requestHeaders: Dictionary<String>,
   OUT responseHeaders: Array<String> DEFAULT _
): Bytes
Perform an HTTP POST operation with the specified url and post data.
Close