From c3d871aef46a07eb08b5bf580e24135d1a150425 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 6 Sep 2008 18:24:04 +0000 Subject: Added HTTP 1.0 downgrade tests with proxies --- tests/data/test1077 | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 tests/data/test1077 (limited to 'tests/data/test1077') diff --git a/tests/data/test1077 b/tests/data/test1077 new file mode 100644 index 000000000..7624a30f4 --- /dev/null +++ b/tests/data/test1077 @@ -0,0 +1,77 @@ + + + +FTP +HTTP +HTTP/1.0 +HTTP GET +HTTP proxy + + + +# +# Server-side + + +HTTP/1.0 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/plain +Content-Length: 9 +Funny-head: yesyes +Proxy-Connection: Keep-Alive + +contents + + +HTTP/1.0 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/plain +Content-Length: 9 +Funny-head: yesyes +Proxy-Connection: Keep-Alive + +contents + + + +# +# Client-side + + +http + + +ftp + + +FTP over HTTP proxy with downgrade to HTTP 1.0 + + +-x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Pragma: no-cache +Accept: */* +Proxy-Connection: Keep-Alive + +GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002 HTTP/1.0 +Host: %HOSTIP:%HTTPPORT +Pragma: no-cache +Accept: */* +Proxy-Connection: Keep-Alive + + + + -- cgit v1.2.3