Initialize the HTTP protocol layer.
Currently it just checks for proxy informations
xmlNanoHTTPCleanup ()
void xmlNanoHTTPCleanup (void);
xmlNanoHTTPScanProxy ()
void xmlNanoHTTPScanProxy (const char *URL);
(Re)Initialize the HTTP Proxy context by parsing the URL and finding
the protocol host port it indicates.
Should be like http://myproxy/ or http://myproxy:3128/
A NULL URL cleans up proxy informations.
URL :
The proxy URL used to initialize the proxy context
xmlNanoHTTPFetch ()
int xmlNanoHTTPFetch (const char *URL,
const char *filename,
char **contentType);
This function try to fetch the indicated resource via HTTP GET
and save it's content in the file.
URL :
The URL to load
filename :
the filename where the content should be saved
contentType :
if available the Content-Type information will be
returned at that location
Returns :
-1 in case of failure, 0 incase of success. The contentType,
if provided must be freed by the caller
This function try to open a connection to the indicated resource
via HTTP using the given method, adding the given extra headers
and the input buffer for the request content.