diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-03-15 17:28:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-03-27 15:30:46 +0100 |
commit | 1e29d275c643ef6aab7948f0f55a7a9397e56b42 (patch) | |
tree | 84c06b93ee8092deb48da90e1f21e29dc4a1c11d /tests/data/test80 | |
parent | 142755fa5cdd2fea72c68663bfefeb9c6ccf5315 (diff) |
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 <connect> style.
Bug: http://curl.haxx.se/bug/view.cgi?id=1204
Reported by: Martin Jansen
Diffstat (limited to 'tests/data/test80')
-rw-r--r-- | tests/data/test80 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/data/test80 b/tests/data/test80 index 2fa196910..16805cabb 100644 --- a/tests/data/test80 +++ b/tests/data/test80 @@ -24,6 +24,10 @@ Content-Length: 9 contents </data> +<connect> +HTTP/1.1 200 Mighty fine indeed
+
+</connect> <datacheck> HTTP/1.1 200 Mighty fine indeed
@@ -49,7 +53,7 @@ http-proxy HTTP 1.0 CONNECT with proxytunnel and proxy+host Basic authentication </name> <command> -http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself +http://test.80:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself </command> </client> @@ -60,8 +64,8 @@ http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%PROXYPORT - ^User-Agent:.* </strip> <proxy> -CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
-Host: %HOSTIP:%HTTPPORT
+CONNECT test.80:%HTTPPORT HTTP/1.0
+Host: test.80:%HTTPPORT
Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
Proxy-Connection: Keep-Alive
@@ -71,7 +75,7 @@ Proxy-Connection: Keep-Alive GET /we/want/that/page/80 HTTP/1.1
Authorization: Basic aWFtOm15c2VsZg==
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
-Host: %HOSTIP:%HTTPPORT
+Host: test.80:%HTTPPORT
Accept: */*
</protocol> |