cURL / Mailing Lists / curl-users / Single Mail


Help for using curl with proxy

From: Pokala Prabhakar - R&D <>
Date: Fri, 9 Mar 2007 13:58:35 +0800

   I am facing the following problem while trying to connect to internet via Proxy using Curl.

I am using the follwing options:

curl URL --proxy proxyIP:port --proxy-user username:password

I am getting the follwing error (with the verbose option):

* About to connect() to proxy port 8080 (#0)
* Trying connected
* Connected to ( port 8080 (#0)
* Proxy auth using Basic with user 'prabhakar'
> GET http://myurl HTTP/1.1
> Proxy-Authorization: Basic cG9rYWxhLnByYWJoYWthcjpuYXZlZW4yMDIw
> User-Agent: curl/7.16.1 (i386-redhat-linux-gnu) libcurl/7.16.1
> Host: myurl
> 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 service is denied. )
< Via:1.1 HQPROXY
< Proxy-Authenticate: NTLM
< Proxy-Authenticate: Kerberos
< Proxy-Authenticate: Negotiate
< Connection: close
* HTTP/1.1 proxy connection set close!
< Proxy-Connection: close

Note: I tried to use the curl as it is. Haven't done any modification for the source.

Thanks in advance.

Received on 2007-03-09