aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1077
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-06 18:24:04 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-06 18:24:04 +0000
commitc3d871aef46a07eb08b5bf580e24135d1a150425 (patch)
tree233dc7f99a7788cf1c3b5ba0954a1272c0892abf /tests/data/test1077
parent59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (diff)
Added HTTP 1.0 downgrade tests with proxies
Diffstat (limited to 'tests/data/test1077')
-rw-r--r--tests/data/test107777
1 files changed, 77 insertions, 0 deletions
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 @@
+<testcase>
+<info>
+<keywords>
+FTP
+HTTP
+HTTP/1.0
+HTTP GET
+HTTP proxy
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+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
+</data>
+<data2>
+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
+</data2>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+<features>
+ftp
+</features>
+ <name>
+FTP over HTTP proxy with downgrade to HTTP 1.0
+ </name>
+ <command>
+-x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/1077 ftp://%HOSTIP:%HTTPPORT/we/want/that/page/10770002
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+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
+
+</protocol>
+</verify>
+</testcase>