simplehttp

Functions for making HTTP requests.

Summary
simplehttpFunctions 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

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

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
FUNCTION get(url: String,
requestHeaders: Dictionary<String>,
OUT responseHeaders: Array<String> DEFAULT _): Bytes
Perform an HTTP GET operation with the specified url.
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