From 3111701c38ee4d15df8e2d76dfcf945dbf2c0bfe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Dec 2009 23:16:09 +0000 Subject: - Jon Nelson found a regression that turned out to be a flaw in how libcurl detects and uses proxies based on the environment variables. If the proxy was given as an explicit option it worked, but due to the setup order mistake proxies would not be used fine for a few protocols when picked up from '[protocol]_proxy'. Obviously this broke after 7.19.4. I now also added test case 1106 that verifies this functionality. (http://curl.haxx.se/bug/view.cgi?id=2913886) --- tests/data/test1106 | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/data/test1106 (limited to 'tests/data/test1106') diff --git a/tests/data/test1106 b/tests/data/test1106 new file mode 100644 index 000000000..2ac14d145 --- /dev/null +++ b/tests/data/test1106 @@ -0,0 +1,56 @@ + + + +FTP +CURLOPT_PORT +HTTP proxy + + + +# Server-side + + +HTTP/1.1 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Accept-Ranges: bytes +Content-Length: 6 + +hello + + + +# Client-side + + +http + + +FTP URL and with ftp_proxy environment variable set + + + +ftp_proxy=http://%HOSTIP:%HTTPPORT/ + +# note that we need quotes around the URL below to make sure the shell doesn't +# treat the semicolon as a separator! + +"ftp://%HOSTIP:23456/1106" + + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET ftp://%HOSTIP:23456/1106 HTTP/1.1 +Host: %HOSTIP:23456 +Accept: */* +Proxy-Connection: Keep-Alive + + + + -- cgit v1.2.3