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/test503 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/data/test503') diff --git a/tests/data/test503 b/tests/data/test503 index 2acfc4a16..ea3148300 100644 --- a/tests/data/test503 +++ b/tests/data/test503 @@ -16,6 +16,10 @@ multi connection-monitor + +HTTP/1.1 200 Mighty fine indeed + + HTTP/1.1 200 OK swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT @@ -51,7 +55,7 @@ lib503 simple multi http:// through proxytunnel with authentication info -http://%HOSTIP:%HTTPPORT/503 %HOSTIP:%PROXYPORT +http://machine.503:%HTTPPORT/503 %HOSTIP:%PROXYPORT foo @@ -65,8 +69,8 @@ moo # Verify data after the test has been "shot" -CONNECT %HOSTIP:%HTTPPORT HTTP/1.1 -Host: %HOSTIP:%HTTPPORT +CONNECT machine.503:%HTTPPORT HTTP/1.1 +Host: machine.503:%HTTPPORT Proxy-Authorization: Basic dGVzdDppbmc= Proxy-Connection: Keep-Alive @@ -74,7 +78,7 @@ Proxy-Connection: Keep-Alive GET /503 HTTP/1.1 Authorization: Basic dGVzdDppbmc= -Host: %HOSTIP:%HTTPPORT +Host: machine.503:%HTTPPORT Accept: */* [DISCONNECT] -- cgit v1.2.3