cURL / Mailing Lists / curl-library / Single Mail

curl-library

FW: Error in proxy connection

From: Ranu Gontia <ranu_gontia_at_persistent.co.in>
Date: Wed, 11 Feb 2009 23:25:46 +0530

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Wednesday, February 11, 2009 6:36 PM
To: libcurl development
Subject: RE: Error in proxy connection

> On Wed, 11 Feb 2009, Daniel Stenberg wrote:

>>> Features: Largefile
>>
>> There's no NTLM in the Features: field... meaning that you can't do NTLM
>> with that library. You need to rebuild it with OpenSSL present, or use
the
>> SSPI option to get that ability,

> BTW, if you would check the return code from curl_easy_setopt() function
call
> where you set NTLM auth you should see that libcurl returns an error!

I have build libcurl with openssl. Now this error. myftp does not requires
any authentication but proxy do.

* About to connect() to proxy myproxy port 8080 (#0)
* Trying myproxy ... * connected
* Connected to myproxy (myproxy) port 8080 (#0)
* Proxy auth using NTLM with user 'username'
> GET ftp://ftp.myftp.com/ HTTP/1.1
Proxy-Authorization: NTLM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
Authorization: NTLM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
Host: ftp.microsoft.com:21
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive

< HTTP/1.1 407 Proxy Authentication Required ( Access is denied. )
The body is <body.out>
< Via: 1.1 MYPROXY2
< Proxy-Authenticate: NTLM
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXX==
< Connection: Keep-Alive
< Proxy-Connection: Keep-Alive
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Type: text/html
< Content-Length: 0
<
* Closing connection #0

Thanks,
Ranu
Received on 2009-02-11