Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
int xmlNanoHTTPFetch (const char *URL, const char *filename, char **contentType); void* xmlNanoHTTPMethod (const char *URL, const char *method, const char *input, char **contentType, const char *headers); void* xmlNanoHTTPOpen (const char *URL, char **contentType); int xmlNanoHTTPReturnCode (void *ctx); int xmlNanoHTTPRead (void *ctx, void *dest, int len); int xmlNanoHTTPSave (void *ctxt, const char *filename); void xmlNanoHTTPClose (void *ctx); |
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 : | |
filename : | |
contentType : | |
Returns : |
void* xmlNanoHTTPMethod (const char *URL, const char *method, const char *input, char **contentType, const char *headers); |
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.
URL : | |
method : | |
input : | |
contentType : | |
headers : |
void* xmlNanoHTTPOpen (const char *URL, char **contentType); |
This function try to open a connection to the indicated resource via HTTP GET.
URL : | |
contentType : |
int xmlNanoHTTPRead (void *ctx, void *dest, int len); |
This function tries to read len bytes from the existing HTTP connection and saves them in dest. This is a blocking call.
ctx : | |
dest : | |
len : | |
Returns : |
int xmlNanoHTTPSave (void *ctxt, const char *filename); |
This function saves the output of the HTTP transaction to a file It closes and free the context at the end
ctxt : | |
filename : | |
Returns : |