cURL / Mailing Lists / curl-users / Single Mail

curl-users

Proxy with http:// and user name

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 30 Apr 2007 12:39:57 -0700

I've noticed some peculiar results when specifying proxies with the
http:// syntax, for example:

curl -x http://user:pass@localhost:3128 http://URL

The example above works correctly, but using slightly different parameters
for -x gives undesired results. Here are some examples (using basic
authentication):

http://user:pass@localhost:3128
  user: user
  pass: pass
  host: localhost
  port: 3128

http://user@localhost:3128
  user: user_at_localhost
  pass: 3128
  host: localhost
  port: 3128

http://user@localhost
  user: user_at_localhost
  pass: <none>
  host: localhost
  port: 1080

It seems to me that only the first of these is correct with the other
two being in error, except that the second one is actually being
tested for in test case 279. Who is correct?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-04-30