32 #ifndef FREESWITCH_XSWITCH_H 33 #define FREESWITCH_XSWITCH_H 40 #define XSWITCH_CM_GET 0 41 #define XSWITCH_CM_POST 1 http_data_t * xswitch_http_post(const char *url, const char *data, switch_memory_pool_t *pool)
switch_curl_slist_t * headers
#define SWITCH_END_EXTERN_C
switch_CURLcode perform_code
http_data_t * xswitch_http_get(const char *url, switch_memory_pool_t *pool)
switch_buffer_t * body_buffer
http_data_t * xswitch_http_request(int method, const char *url, const void *data, size_t datalen, switch_curl_slist_t *headers, switch_memory_pool_t *pool, int curl_connect_timeout, int curl_timeout)
struct http_data_s http_data_t
struct curl_slist switch_curl_slist_t
struct fspr_pool_t switch_memory_pool_t
switch_memory_pool_t * pool
#define SWITCH_BEGIN_EXTERN_C