diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-14 22:50:32 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-15 08:13:37 +0200 |
commit | 65872efea74f16552e2e0e516164b01913fd706f (patch) | |
tree | adddb003edff9e6fb093f6ca2590b3cdefae9a38 /tests/data/test1150 | |
parent | 22708eae40411f6c02e76632aa5d5d852b08a214 (diff) |
test1150: verify same host fetch using different ports over proxy
Closes #1889
Diffstat (limited to 'tests/data/test1150')
-rw-r--r-- | tests/data/test1150 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/data/test1150 b/tests/data/test1150 new file mode 100644 index 000000000..ecd95d57e --- /dev/null +++ b/tests/data/test1150 @@ -0,0 +1,55 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +HTTP proxy +</keywords> +</info> +# Server-side +<reply> + +# this is returned when we get a GET! +<data> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 7 +Content-Type: text/html +Funny-head: yesyes + +daniel +</data> +</reply> + +# Client-side +<client> +<server> +http +</server> + <name> +HTTP proxy with URLs using different ports + </name> + <command> +--proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.1150:150/path http://test.remote.example.com.1150:1234/path/ +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent: curl/.* +</strip> +<protocol> +GET http://test.remote.example.com.1150:150/path HTTP/1.1
+Host: test.remote.example.com.1150:150
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+GET http://test.remote.example.com.1150:1234/path/ HTTP/1.1
+Host: test.remote.example.com.1150:1234
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+</protocol> +</verify> +</testcase> |