cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Error in proxy connection

From: Ranu Gontia <ranu_gontia_at_persistent.co.in>
Date: Wed, 11 Feb 2009 15:54:03 +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 3:22 PM
To: libcurl development
Subject: RE: Error in proxy connection

> On Wed, 11 Feb 2009, Ranu Gontia wrote:

>> I have tried all the combination. Changed " curl_easy_setopt(curlhandle,
>> CURLOPT_PROXYAUTH, CURLAUTH_NTLM);" still got the same error.

> So if you select NTLM with the proxy, use the correct username and
password
> and disable proxytunnel it still doesn't work?

> Then we're approach something. Is this a recent libcurl? Can you show us
the
> response from the proxy for such a given attempt?

Following is the response from proxy server if select NTLM with the proxy,
use the correct username and password and disable proxytunnel.

* About to connect() to proxy 172.16.x.x port 8080 (#0)
* Trying 172.16.0.40... * connected
* Connected to 172.16.0.40 (172.16.x.x) port 8080 (#0)
* Proxy auth using Basic with user 'proxyusername'
* Server auth using Basic with user 'ftpserverusername'
> GET ftp://121.243.y.y/ HTTP/1.1
Proxy-Authorization: Basic cmFudV9nb250aWE6cnJqZCExMTE=
Authorization: Basic bGl2ZW9mZmljZTpMIV42KWU=
Host: 121.243.y.y:21
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive

< HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authoriza
tion to fulfill the request. Access to the Web Proxy filter is denied. )
The body is <body.out>
< Via: 1.1 MYPROXY
< Proxy-Authenticate: Negotiate
< Proxy-Authenticate: Kerberos
< Proxy-Authenticate: NTLM
< Connection: Keep-Alive
< Proxy-Connection: Keep-Alive
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Type: text/html
< Content-Length: 4113
<
* Closing connection #0
Received on 2009-02-11