curl-library
Re: NTLM at proxy and SSL -> 502
Date: Fri, 29 Aug 2003 11:18:09 +0200
Hi Daniel
I had already used CURLOPT_PROXYAUTH
In my short test programm I tried two proxies.
The first using BASIC which worked fine, the second with NTLM which
resulted in 502.
Is there anything obviously wrong with my code?
curl_version() returned "libcurl/7.10.7 OpenSSL/0.9.6c"
>>I forgot what Daniel wrote on 12th of August: doing HTTPS via NTLM-proxy
>>will take a larger fix. Up to now you will get a 502 Bad Gateway.
>>Is there a plan how and when to do this larger fix?
>>
>>
>That "larger fix" was provided by Serge Semashko in 7.10.7 with
>CURLOPT_PROXYAUTH.
>
>
>>Can I help or when do you think, we will have that fix?
>>
>>
>Try using the new option and see if it works for you!
>
>
the '#' are for security policy.
int
main(
int argc,
char* argv[])
{
const char
*version = NULL;
char
*errorMessage = NULL;
int
httpState = 0,
rc = 0;
CURL
*curl = NULL;
CURLcode
res = CURLE_OK;
errorMessage = new char[CURL_ERROR_SIZE];
*errorMessage = '\0';
version = curl_version();
curl = curl_easy_init();
if (curl)
{
rc = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorMessage);
rc = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
rc = curl_easy_setopt(curl, CURLOPT_PROXYAUTH,
CURLAUTH_BASIC | CURLAUTH_NTLM);
rc = curl_easy_setopt(curl, CURLOPT_PROXY, "###.##.##.###:8080");
rc = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD,
"#Domain#\\#Username#");
rc = curl_easy_setopt(curl, CURLOPT_URL,
"https://fax4win.faxolution.net/install/version.ini");
res = curl_easy_perform(curl);
rc = curl_easy_getinfo(curl, CURLINFO_HTTP_CODE, &httpState);
curl_easy_cleanup(curl);
}
if (errorMessage)
{
delete[] errorMessage;
}
return 0;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-08-29