Asterisk - The Open Source Telephony Project GIT-master-0bf3178
Data Structures | Macros | Functions
curl_utils.h File Reference
#include <curl/curl.h>
#include "asterisk/acl.h"
Include dependency graph for curl_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  curl_header_data
 Context structure passed to ast_curl_header_default_cb. More...
 
struct  curl_open_socket_data
 Context structure passed to ast_curl_open_socket_default_cb. More...
 
struct  curl_optional_data
 
struct  curl_write_data
 Context structure passed to ast_curl_write_default_cb. More...
 

Macros

#define AST_CURL_DEFAULT_MAX_HEADER_LEN   2048
 
#define CURL_WRITEFUNC_ERROR   0
 

Functions

long curl_download_to_file (const char *url, char *filename)
 Really simple document retrieval to file. More...
 
long curl_download_to_memory (const char *url, size_t *returned_length, char **returned_data, struct ast_variable **headers)
 Really simple document retrieval to memory. More...
 
size_t curl_header_cb (char *data, size_t size, size_t nitems, void *client_data)
 A default implementation of a header callback. More...
 
void curl_header_data_free (void *obj)
 
curl_socket_t curl_open_socket_cb (void *client_data, curlsocktype purpose, struct curl_sockaddr *address)
 A default implementation of an open socket callback. More...
 
void curl_open_socket_data_free (void *obj)
 
size_t curl_write_cb (char *data, size_t size, size_t nmemb, void *clientp)
 A default implementation of a write data callback. More...
 
void curl_write_data_free (void *obj)
 
long curler (const char *url, int request_timeout, struct curl_write_data *write_data, struct curl_header_data *header_data, struct curl_open_socket_data *open_socket_data)
 Perform a curl request. More...
 

Macro Definition Documentation

◆ AST_CURL_DEFAULT_MAX_HEADER_LEN

#define AST_CURL_DEFAULT_MAX_HEADER_LEN   2048

Definition at line 25 of file curl_utils.h.

◆ CURL_WRITEFUNC_ERROR

#define CURL_WRITEFUNC_ERROR   0

Definition at line 28 of file curl_utils.h.