From 1e29d275c643ef6aab7948f0f55a7a9397e56b42 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 15 Mar 2013 17:28:32 +0100 Subject: 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 style. Bug: http://curl.haxx.se/bug/view.cgi?id=1204 Reported by: Martin Jansen --- tests/data/test1316 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests/data/test1316') 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 + + +HTTP/1.1 200 Mighty fine indeed +Magic: sure you can FTP me + + + # When doing LIST, we get the default list output hard-coded in the test # FTP server 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 + +# please send the real CONNECT connect off to the FTP server's port + +%FTPPORT + ftp http-proxy @@ -44,7 +58,7 @@ http-proxy FTP LIST tunneled through HTTP proxy -ftp://%HOSTIP:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT +ftp://ftp.1316:%FTPPORT/ -p -x %HOSTIP:%PROXYPORT -- cgit v1.2.3