cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with NTLM proxy auth

From: Volker Schmid <volker.schmid_at_regify.com>
Date: Tue, 06 Aug 2013 11:07:50 +0200

Hello all,

the following log shows my problem with libcurl 2.27.0.0 (Windows) and NTLM proxy:

2013-08-06 10:09:31 : CURL: About to connect() to proxy 10.50.200.13 port 3128 (#0)
2013-08-06 10:09:31 : CURL: Trying 10.50.200.13...
2013-08-06 10:09:31 : CURL: connected
2013-08-06 10:09:31 : CURL: Connected to 10.50.200.13 (10.50.200.13) port 3128 (#0)
2013-08-06 10:09:31 : CURL: Establish HTTP proxy tunnel to xxxx.xxxx.de:443
2013-08-06 10:09:31 : CURL: Proxy auth using Basic with user 'testuser'
2013-08-06 10:09:31 : CURL: CONNECT xxxx.xxxx.de:443 HTTP/1.1 Host: xxxx.xxxx.de:443 Proxy-Authorization: Basic d2VudHo6Z44sZnZyNiExMzM= Proxy-Connection: Keep-Alive
2013-08-06 10:09:31 : CURL: HTTP/1.1 407 Proxy Authentication Required
2013-08-06 10:09:31 : CURL: Mime-Version: 1.0
2013-08-06 10:09:31 : CURL: Date: Tue, 06 Aug 2013 10:09:31 CEST
2013-08-06 10:09:31 : CURL: Content-Type: text/html
2013-08-06 10:09:31 : CURL: Proxy-Authenticate: NTLM
2013-08-06 10:09:31 : CURL: Connection: close
2013-08-06 10:09:31 : CURL: Proxy-Connection: close
2013-08-06 10:09:31 : CURL: Content-Length: 2231
2013-08-06 10:09:31 : CURL:
2013-08-06 10:09:31 : CURL: Ignore 2231 bytes of response-body
2013-08-06 10:09:31 : CURL: Received HTTP code 407 from proxy after CONNECT
2013-08-06 10:09:31 : CURL: Closing connection #0
2013-08-06 10:09:31 : CURL: Failure when receiving data from the peer

As you can see, libcurl does not use or accept the NTLM authentication.

Setup:
CURLOPT_HTTPPROXYTUNNEL = 1
CURLOPT_PROXY = URL of Proxy
CURLOPT_PROXYAUTH = #CURLAUTH_BASIC & #CURLAUTH_DIGEST & #CURLAUTH_NTLM
CURLOPT_PROXYUSERPWD = ProxyUsername:ProxyPassword
CURLOPT_SSL_VERIFYPEER = 1
CURLOPT_SSL_VERIFYHOST = 2

Any ideas what might be the reason? As this happens at a customer, I sadly do not have access to the system itself.

Best,

Volker
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-06