From 65872efea74f16552e2e0e516164b01913fd706f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Sep 2017 22:50:32 +0200 Subject: test1150: verify same host fetch using different ports over proxy Closes #1889 --- tests/data/test1150 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/data/test1150 (limited to 'tests/data/test1150') 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 @@ + + + +HTTP +HTTP GET +HTTP proxy + + +# Server-side + + +# this is returned when we get a GET! + +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 + + + +# Client-side + + +http + + +HTTP proxy with URLs using different ports + + +--proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.1150:150/path http://test.remote.example.com.1150:1234/path/ + + + +# Verify data after the test has been "shot" + + +^User-Agent: curl/.* + + +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 + + + + -- cgit v1.2.3