curl-library
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
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