aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-05-28 00:55:11 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-28 00:55:11 +0200
commit4b96e5c70fd2cf10c7bd07cb50e01daeb981a5b9 (patch)
treef9dca7630dbe736f85927d53cba3a7bd507805ea /tests
parent75743b009b5fb15dc018b571effb43b81c84e248 (diff)
test1115: verify that unexpected 1xx responses work fine
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.am2
-rw-r--r--tests/data/test111555
2 files changed, 56 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index f65c1ce7e..61b1b4807 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -67,7 +67,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test312 test1105 test565 test800 test1106 test801 test566 test802 test803 \
test1107 test1108 test1109 test1110 test1111 test1112 test129 test567 \
test568 test569 test570 test571 test572 test804 test805 test806 test807 \
- test573 test313
+ test573 test313 test1115
filecheck:
@mkdir test-place; \
diff --git a/tests/data/test1115 b/tests/data/test1115
new file mode 100644
index 000000000..0f294d4cf
--- /dev/null
+++ b/tests/data/test1115
@@ -0,0 +1,55 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP 1xx response code
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+HTTP/1.1 104 Experiment
+Server: Microsoft-IIS/5.0
+Date: Sun, 03 Apr 2005 14:57:45 GMT
+X-Powered-By: ASP.NET
+
+HTTP/1.1 200 OK swsbounce
+Server: Microsoft-IIS/6.0
+Content-Type: text/html; charset=iso-8859-1
+Content-Length: 0
+
+</data>
+
+</reply>
+
+# Client-side
+<client>
+#
+<server>
+http
+</server>
+<features>
+crypto
+</features>
+ <name>
+HTTP GET with unexpected 1xx response
+ </name>
+ <command>
+http://%HOSTIP:%HTTPPORT/1115
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /1115 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol>
+</verify>
+</testcase>