Aluminium

Network Operations

http_get

Performs a HTTP GET request and returns the content of the response.

Arguments:

:url*
URL of the request.
:agent
Optional argument to specify the user agent.
:decoding
If this argument is provided, the content of the response will be treated as text, encoded in the specified encoding. Otherwise it will be treated as binary data.
...
Any number of arguments that will be passed as query fields along with the fields specified in the URL (argument names are used as field names).

http_post

Performs a HTTP POST request and returns the content of the response. Post data is passed in url-encoded form - suitable for text data.

Arguments:

:url*
URL of the request.
:agent
Optional argument to specify the user agent.
:decoding
If this argument is provided, the content of the response will be treated as text, encoded in the specified encoding. Otherwise it will be treated as binary data.
...
Any number of arguments that will be passed as POST data (argument names are used as field names).

http_post_multipart

Performs a HTTP POST request and returns the content of the response. Post data is passed in multipart form - suitable for binary data.

Arguments:

:url*
URL of the request.
:agent
Optional argument to specify the user agent.
:decoding
If this argument is provided, the content of the response will be treated as text, encoded in the specified encoding. Otherwise it will be treated as binary data.
:encoding
If this argument is provided, all the arguments will be encoded using this encoding, otherwise they will be passed without transformation.
...
Any number of arguments that will be passed as POST data (argument names are used as field names).