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/test302 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/data/test302') diff --git a/tests/data/test302 b/tests/data/test302 index 1223f1c33..7bb162b41 100644 --- a/tests/data/test302 +++ b/tests/data/test302 @@ -9,6 +9,17 @@ FAILURE +# Server-side + + + +HTTP/1.1 405 Method Not Allowed swsclose + +And you should ignore this data. + + + + # Client-side @@ -21,7 +32,7 @@ https HTTPS GET over HTTP proxy fails --k -U fake:user -x %HOSTIP:%HTTPPORT https://bad.fakeurl-to.test/slash/302 +-k -U fake:user -x %HOSTIP:%HTTPPORT https://bad.fakeurl-to.test:302/slash/302 -- cgit v1.2.3