DTS Application Library
0.2.3
Application library containing referenced objects and interfaces to common libraries
|
CURL Interface. More...
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <curl/curl.h>
#include <curl/easy.h>
#include "dtsapp.h"
Go to the source code of this file.
Data Structures | |
struct | curl_progress |
Allow progress monitoring. | |
struct | curl_password |
CURL Authentification callback. | |
struct | curl_post |
HTTP post data structure. More... | |
Functions | |
int | curlinit (void) |
Initilise the CURL library. More... | |
void | curlclose (void) |
Un reference CURL. This is required for each call to curlinit(). More... | |
struct curlbuf * | curl_geturl (const char *def_url, struct basic_auth *bauth, curl_authcb authcb, void *auth_data) |
Fetch the URL using CURL (HTTP GET) More... | |
struct curlbuf * | curl_posturl (const char *def_url, struct basic_auth *bauth, struct curl_post *post, curl_authcb authcb, void *auth_data) |
Fetch the URL using CURL (HTTP POST) More... | |
struct curlbuf * | curl_ungzip (struct curlbuf *cbuf) |
If the buffer contains GZIP data uncompress it. More... | |
struct basic_auth * | curl_newauth (const char *user, const char *passwd) |
Create a new auth structure with initial vallues. More... | |
struct curl_post * | curl_newpost (void) |
Create a HTTP Post data structure. More... | |
void | curl_postitem (struct curl_post *post, const char *name, const char *value) |
Add a item value pair to post structure. More... | |
char * | url_escape (char *url) |
Escape and return the url. More... | |
char * | url_unescape (char *url) |
UN escape and return the url. More... | |
void | curl_setprogress (curl_progress_func cb, curl_progress_pause p_cb, curl_progress_newdata d_cb, void *data) |
Configure global progress handling. More... | |
void | curl_setauth_cb (curl_authcb auth_cb, void *data) |
Set global password callback. More... | |
struct xml_doc * | curl_buf2xml (struct curlbuf *cbuf) |
Create a XML document from from buffer (application/xml) More... | |
CURL Interface.
Definition in file curl.c.