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/test287 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/data/test287') diff --git a/tests/data/test287 b/tests/data/test287 index 323d3f392..ec4dfeb05 100644 --- a/tests/data/test287 +++ b/tests/data/test287 @@ -11,12 +11,11 @@ proxytunnel # Server-side -# this is returned first since we get no proxy-auth - + HTTP/1.1 405 Method Not Allowed swsclose And you should ignore this data. - + @@ -29,15 +28,15 @@ http HTTP proxy CONNECT with custom User-Agent header -http://test.remote.example.com:287/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel +http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel # Verify data after the test has been "shot" -CONNECT test.remote.example.com:287 HTTP/1.1 -Host: test.remote.example.com:287 +CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1 +Host: test.remote.example.com.287:%HTTPPORT Proxy-Connection: Keep-Alive User-Agent: looser/2007 -- cgit v1.2.3