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/test1060 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tests/data/test1060') diff --git a/tests/data/test1060 b/tests/data/test1060 index 767a7ccc9..da1be78b7 100644 --- a/tests/data/test1060 +++ b/tests/data/test1060 @@ -14,7 +14,7 @@ HTTP proxy Digest auth # this is returned first since we get no proxy-auth - + HTTP/1.1 407 Authorization Required to proxy me my dear Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345" Content-Length: 40000 @@ -820,7 +820,7 @@ And you should ignore this data. aaaaaaaaaaaaaaaa And you should ignore this data. aaaaaaaaaaaaaaaa And you should ignore this data. aaaaaaaaaaaaaaaa end of 1 KB aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - + # this is returned when we get a GET! @@ -835,12 +835,12 @@ daniel # then this is returned when we get proxy-auth - + HTTP/1.1 200 OK swsbounce Server: no Nice proxy auth sir! - + HTTP/1.1 407 Authorization Required to proxy me my dear @@ -874,7 +874,7 @@ crypto HTTP proxy CONNECT auth Digest, large headers and data -http://test.remote.haxx.se:1060/path/10600002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel +http://test.remote.haxx.se.1060:%HTTPPORT/path/10600002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel @@ -884,17 +884,17 @@ http://test.remote.haxx.se:1060/path/10600002 --proxy http://%HOSTIP:%HTTPPORT - ^User-Agent: curl/.* -CONNECT test.remote.haxx.se:1060 HTTP/1.1 -Host: test.remote.haxx.se:1060 +CONNECT test.remote.haxx.se.1060:%HTTPPORT HTTP/1.1 +Host: test.remote.haxx.se.1060:%HTTPPORT Proxy-Connection: Keep-Alive -CONNECT test.remote.haxx.se:1060 HTTP/1.1 -Host: test.remote.haxx.se:1060 -Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se:1060", response="79e394ffcd42b6c771c7582da1fc4498" +CONNECT test.remote.haxx.se.1060:%HTTPPORT HTTP/1.1 +Host: test.remote.haxx.se.1060:%HTTPPORT +Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1060:%HTTPPORT", response="e1fbed39c26f4efe284adc0e576ff638" Proxy-Connection: Keep-Alive GET /path/10600002 HTTP/1.1 -Host: test.remote.haxx.se:1060 +Host: test.remote.haxx.se.1060:%HTTPPORT Accept: */* -- cgit v1.2.3