Modified: freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c (15997 => 15998)
--- freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c 2009-12-18 17:18:22 UTC (rev 15997)
+++ freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c 2009-12-18 20:16:37 UTC (rev 15998)
@@ -129,17 +129,18 @@
curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
}
if (!strcasecmp(method, "head")) {
- curl_easy_setopt(curl_handle, CURLOPT_NOBODY, SWITCH_TRUE);
+ curl_easy_setopt(curl_handle, CURLOPT_NOBODY, 1);
} else if (!strcasecmp(method, "post")) {
curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDSIZE, strlen(data));
curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, (void *) data);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Post data: %s\n", data);
} else {
- curl_easy_setopt(curl_handle, CURLOPT_HTTPGET, SWITCH_TRUE);
+ curl_easy_setopt(curl_handle, CURLOPT_HTTPGET, 1);
}
curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 0);
curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 0);
curl_easy_setopt(curl_handle, CURLOPT_URL, url);
+ curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) http_data);
curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, header_callback);