cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Proxy authentication does not work if several types was set

From: Pavel Orehov <pcarlo_at_bezeqint.net>
Date: Mon, 18 Apr 2005 17:06:18 +0300

Hi,

I am working with libcurl with multi stack.

I want libcurl sample with authentication method required from
proxy and then send appropriate one, but this does not work.

std::string cred("user:pass");
curl_easy_setopt(m_curlHandle, CURLOPT_PROXYUSERPWD,
cred.c_str());
curl_easy_setopt(m_curlHandle, CURLOPT_PROXYAUTH, CURLAUTH_NTLM);
curl_easy_setopt(m_curlHandle, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);

In this way it should sample proxy method and then use
appropriate one, but actually next scenario heppens:
- curl send request with Basic headers included
- proxy response with 407 and NTLM required in headers
- curl return 407 to client

It looks like a BUG !!!
Received on 2005-04-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET