Mercurial > audlegacy-plugins
comparison src/curl/curl.c @ 948:8dd7c03376bb trunk
[svn] - add DEBUG_CURL to enable curl internal debugging messages
author | nenolod |
---|---|
date | Thu, 12 Apr 2007 14:55:59 -0700 |
parents | 24a5068bb7f8 |
children | d3b9627861de |
comparison
equal
deleted
inserted
replaced
947:24a5068bb7f8 | 948:8dd7c03376bb |
---|---|
39 #define DEBUG_HEADERS 0 | 39 #define DEBUG_HEADERS 0 |
40 #define DEBUG_ICY 0 | 40 #define DEBUG_ICY 0 |
41 #define DEBUG_ICY_WRAP 0 | 41 #define DEBUG_ICY_WRAP 0 |
42 #define DEBUG_ICY_VERBOSE 0 | 42 #define DEBUG_ICY_VERBOSE 0 |
43 #define DEBUG_METADATA_REPORT 0 | 43 #define DEBUG_METADATA_REPORT 0 |
44 #define DEBUG_CURL 0 | |
44 | 45 |
45 typedef struct _CurlHandle CurlHandle; | 46 typedef struct _CurlHandle CurlHandle; |
46 | 47 |
47 struct _CurlHandle { | 48 struct _CurlHandle { |
48 CURL *curl; | 49 CURL *curl; |
585 curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYPEER, 0); | 586 curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYPEER, 0); |
586 curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYHOST, 0); | 587 curl_easy_setopt(handle->curl, CURLOPT_SSL_VERIFYHOST, 0); |
587 | 588 |
588 curl_easy_setopt(handle->curl, CURLOPT_FOLLOWLOCATION, 1); | 589 curl_easy_setopt(handle->curl, CURLOPT_FOLLOWLOCATION, 1); |
589 | 590 |
591 if (DEBUG_CURL) | |
592 curl_easy_setopt(handle->curl, CURLOPT_VERBOSE, 1); | |
593 | |
590 { | 594 { |
591 gboolean tmp = FALSE; | 595 gboolean tmp = FALSE; |
592 ConfigDb *db; | 596 ConfigDb *db; |
593 | 597 |
594 db = bmp_cfg_db_open(); | 598 db = bmp_cfg_db_open(); |