summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-03-02 03:06:30 +0000
committerJason Woodward2005-03-02 03:06:30 +0000
commitd8e84e6049a8c8678943eca7766f032e6e7a4e49 (patch)
tree6340b3e53f68e5098b50645c8d9dcd1982ef80b4 /src
parent3fc5ed3048941124e9c2816c7349a809ba0cf57c (diff)
downloadslapt-get-d8e84e6049a8c8678943eca7766f032e6e7a4e49.tar.gz
set CURLOPT_HTTPAUTH to CURLAUTH_ANY for NTLM proxy users
Diffstat (limited to 'src')
-rw-r--r--src/curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/curl.c b/src/curl.c
index 06813b9..031433d 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -40,6 +40,7 @@ int download_data(FILE *fh,const char *url,size_t bytes,const rc_config *global_
curl_easy_setopt(ch, CURLOPT_FTP_USE_EPRT, 0);
#endif
curl_easy_setopt(ch, CURLOPT_FAILONERROR, 1);
+ curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */
@@ -129,6 +130,7 @@ char *head_request(const char *url){
curl_easy_setopt(ch, CURLOPT_FTP_USE_EPRT, 0);
#endif
curl_easy_setopt(ch, CURLOPT_FAILONERROR, 1);
+ curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */