aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1316
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-03-15 17:28:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-03-27 15:30:46 +0100
commit1e29d275c643ef6aab7948f0f55a7a9397e56b42 (patch)
tree84c06b93ee8092deb48da90e1f21e29dc4a1c11d /tests/data/test1316
parent142755fa5cdd2fea72c68663bfefeb9c6ccf5315 (diff)
test1509: verify proxy header response headers count
Modified sws to support and use custom CONNECT responses instead of the previously naive hard-coded version. Made the HTTP test server able to extract test case number from the host name in a CONNECT request by finding the number after the last dot. It makes 'machine.moo.123' use test case 123. Adapted a larger amount of tests to the new <connect> style. Bug: http://curl.haxx.se/bug/view.cgi?id=1204 Reported by: Martin Jansen
Diffstat (limited to 'tests/data/test1316')
-rw-r--r--tests/data/test131616
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/data/test1316 b/tests/data/test1316
index e65bd5f6a..51f58c268 100644
--- a/tests/data/test1316
+++ b/tests/data/test1316
@@ -12,12 +12,21 @@ HTTP proxy
#
# Server-side
<reply>
+
+<connect>
+HTTP/1.1 200 Mighty fine indeed
+Magic: sure you can FTP me
+
+</connect>
+
# When doing LIST, we get the default list output hard-coded in the test
# FTP server
<datacheck>
HTTP/1.1 200 Mighty fine indeed
+Magic: sure you can FTP me
HTTP/1.1 200 Mighty fine indeed
+Magic: sure you can FTP me
total 20
drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
@@ -36,6 +45,11 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
#
# Client-side
<client>
+
+# please send the real CONNECT connect off to the FTP server's port
+<connectport>
+%FTPPORT
+</connectport>
<server>
ftp
http-proxy
@@ -44,7 +58,7 @@ http-proxy
FTP LIST tunneled through HTTP proxy
</name>
<command>
-ftp://%HOSTIP:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT
+ftp://ftp.1316:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT
</command>
</client>