{
char filename[512] = "";
switch_CURL *curl_handle = NULL;
+ switch_CURLcode cc;
struct config_data config_data;
switch_xml_t xml = NULL;
char *data = NULL;
curl_easy_setopt(curl_handle, CURLOPT_INTERFACE, binding->bind_local);
}
+ cc = switch_curl_easy_perform(curl_handle);
+ if (cc && cc != CURLE_WRITE_ERROR) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "CURL returned error:[%d] %s\n", cc, switch_curl_easy_strerror(cc));
+ }
+
switch_curl_easy_perform(curl_handle);
switch_curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &httpRes);
switch_curl_easy_cleanup(curl_handle);