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/test1061 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tests/data/test1061') diff --git a/tests/data/test1061 b/tests/data/test1061 index 0fb8c5110..05c3209c4 100644 --- a/tests/data/test1061 +++ b/tests/data/test1061 @@ -15,7 +15,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" Transfer-Encoding: chunked @@ -825,7 +825,7 @@ end of 1 KB aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 0 - + # this is returned when we get a GET! @@ -840,12 +840,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 @@ -879,7 +879,7 @@ crypto HTTP proxy CONNECT auth Digest, large headers and chunked data -http://test.remote.haxx.se:1061/path/10610002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel +http://test.remote.haxx.se.1061:%HTTPPORT/path/10610002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel @@ -889,17 +889,17 @@ http://test.remote.haxx.se:1061/path/10610002 --proxy http://%HOSTIP:%HTTPPORT - ^User-Agent: curl/.* -CONNECT test.remote.haxx.se:1061 HTTP/1.1 -Host: test.remote.haxx.se:1061 +CONNECT test.remote.haxx.se.1061:%HTTPPORT HTTP/1.1 +Host: test.remote.haxx.se.1061:%HTTPPORT Proxy-Connection: Keep-Alive -CONNECT test.remote.haxx.se:1061 HTTP/1.1 -Host: test.remote.haxx.se:1061 -Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se:1061", response="8e96acf6a6214012183879e28e73b2d3" +CONNECT test.remote.haxx.se.1061:%HTTPPORT HTTP/1.1 +Host: test.remote.haxx.se.1061:%HTTPPORT +Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.1061:%HTTPPORT", response="4e23449fa93224834299e7282a70472c" Proxy-Connection: Keep-Alive GET /path/10610002 HTTP/1.1 -Host: test.remote.haxx.se:1061 +Host: test.remote.haxx.se.1061:%HTTPPORT Accept: */* -- cgit v1.2.3