Revision
16881
Author
rupa
Date
2010-03-03 11:43:28 -0600 (Wed, 03 Mar 2010)

Log Message

FSMOD-38 - support redirection

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c (16880 => 16881)


--- freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c	2010-03-03 16:23:22 UTC (rev 16880)
+++ freeswitch/trunk/src/mod/applications/mod_curl/mod_curl.c	2010-03-03 17:43:28 UTC (rev 16881)
@@ -137,8 +137,8 @@
 	} else {
 		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_FOLLOWLOCATION, 1);
+	curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 15);
 	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);