cURL / Mailing Lists / curl-library / Single Mail

curl-library

Error in proxy connection

From: Ranu Gontia <ranu_gontia_at_persistent.co.in>
Date: Tue, 10 Feb 2009 19:44:41 +0530

Hi All,

 

I am trying to connect to google through proxy using curl client (curl.exe)

Using "curl -ntml -u username -x myproxy:8080 --verbose
http://www.google.co.in" command line argument.

And it returns following error:-

 

* About to connect() to proxy myproxy port 8080 (#0)

* Trying myproxy... * connected

* Connected to myproxy(x.x.x.x) port 8080 (#0)

* Establish HTTP proxy tunnel to www.google.co.in:80

* Proxy auth using Basic with user 'username'

> CONNECT www.google.co.in:80 HTTP/1.0

Host: www.google.co.in:80

Proxy-Authorization: Basic cmFudV9nb250aWE6cnJqZEAxMTE=

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 MYPROXY2

< 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

 

I am able to connect to google through IE.

Can someone help me how to open a web page using curl client through proxy
authentication?

 

Thanks,

Ranu

 
Received on 2009-02-10