]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5800: [mod_curl] add support for additional curl auth methods
authorMichael Jerris <mike@jerris.com>
Mon, 17 Nov 2014 16:01:35 +0000 (11:01 -0500)
committerMichael Jerris <mike@jerris.com>
Mon, 17 Nov 2014 16:01:35 +0000 (11:01 -0500)
src/mod/applications/mod_curl/mod_curl.c

index 86e2924073aef493e821d6e1e25f2df719cf4716..b5b49c0d7bc97e3b7e22a3cccdcdcbadb0c4846c 100644 (file)
@@ -241,6 +241,7 @@ static http_data_t *do_lookup_url(switch_memory_pool_t *pool, const char *url, c
        }
        switch_curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
        switch_curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 15);
+       switch_curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
        switch_curl_easy_setopt(curl_handle, CURLOPT_URL, url);
        switch_curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
        switch_curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);