| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
User in URL with no_proxy - patch
From: James Bursa <james_at_zamez.org>
Date: Fri, 15 May 2009 07:07:17 -0500
Fetching a URL with an embedded user and password when both the http_proxy and
$ export http_proxy=http://localhost:3128/
This works as expected:
$ curl -v http://192.168.1.1/
but this attempts to go through the proxy anyway:
$ curl -v http://u:p@192.168.1.1/
I think the cause is the order of operations in create_conn(), which does
The attached patch reorders the code to fix it. The reasoning behind this is:
1. ParseURLAndFillConnection() fills in conn->protostr and may also do
so the patch keeps these in the same order, but moves them before proxy
This problem came up on the #curl IRC channel.
James
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info