SPL Module Reference: curl
load "curl";
cURL Module
This module adds an interface to the cURL library.
WARNING: This module is still under construction.
builtin
curl(url, %options);
builtin curl(url, %options);
Perform a cURL file transfer
The first argument to this function is the URL. All other arguments
(cURL options) must be specified by name (lowercase and without the
CURLOPT_ prefix). A full list of cURL options can be found at:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
The special argument 'encoding: ...' can be used to specify the expected
encoding of the data to be recieved.
The return value is a data structure with the following fields:
.header
The HTTP response header
.body
The actual HTTP response
Example given:
var result = curl("http://de.wikipedia.org/wiki/Spezial:Search?",
post: 1, postfields: "search=SPL_Programming_Language");
debug result.header;