From 0b317b72ae6f23eb4dbd0a22509a20ff5acb2958 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Tue, 16 Jun 2009 13:16:28 +0000 Subject: - When doing non-anonymous ftp via http proxies and the password is not provided in the url, add it there (squid needs this). --- tests/data/test299 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test299 (limited to 'tests/data') diff --git a/tests/data/test299 b/tests/data/test299 new file mode 100644 index 000000000..a557a14c7 --- /dev/null +++ b/tests/data/test299 @@ -0,0 +1,53 @@ + + + +FTP +HTTP +CURLOPT_USERPWD +HTTP proxy + + + +# Server-side + + +HTTP/1.0 200 OK swsclose +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + +blablabla + + + + +# Client-side + + +http + + +ftp + + +FTP over HTTP proxy with user:pass not in url + + +-x http://%HOSTIP:%HTTPPORT -u michal:aybabtu ftp://host.com/we/want/299 + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET ftp://michal:aybabtu@host.com/we/want/299 HTTP/1.1 +Authorization: Basic bWljaGFsOmF5YmFidHU= +Host: host.com:21 +Accept: */* +Proxy-Connection: Keep-Alive + + + + -- cgit v1.2.3