cURL / Mailing Lists / curl-users / Single Mail

curl-users

proxy access

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 18 Apr 2008 11:03:27 -0500

Just a quick question about tunneling through proxies - if I get this back:

   * About to connect() to proxy proxy.xxxx.com port 80
   * Trying 10.58.195.22... connected
   * Connected to proxy.xxxx.com (10.58.195.22) port 80
   * Establish HTTP proxy tunnel to 10.76.79.68:443
> CONNECT 10.76.79.68:443 HTTP/1.0
> Host: 10.76.79.68:443
> User-Agent: curl/7.15.3 (i686-pc-linux-gnu) libcurl/7.15.3
OpenSSL/0.9.7d zlib/1.1.3
> Proxy-Connection: Keep-Alive
>
   < HTTP/1.0 407 Proxy Authentication Required
   < Proxy-Authenticate: Basic realm="Internet Access"

does the "CONNECT" line mean that the proxy actually connected to the remote
host, and then decided to demand authentication?? Or does it mean that it's
about to connect, but wants authentication first??

I may not be able to get a userid/password for this particular proxy, due to
Data Security rules about generic accounts. If that CONNECT means "yes, the
proxy made the connection" then it's all good. Otherwise I've got to find
an alternate way to hit the client site...

Ralph Mitchell
Received on 2008-04-18