]> granicus.if.org Git - curl/commitdiff
test1115: verify that unexpected 1xx responses work fine
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 May 2010 22:55:11 +0000 (00:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 May 2010 22:55:11 +0000 (00:55 +0200)
tests/data/Makefile.am
tests/data/test1115 [new file with mode: 0644]

index f65c1ce7e876d88f391b7a4f34dc86adc6ffecc6..61b1b48072bc4d2a5e74e9bd56364caeadbc2278 100644 (file)
@@ -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 (file)
index 0000000..0f294d4
--- /dev/null
@@ -0,0 +1,55 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP 1xx response code
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+HTTP/1.1 104 Experiment\r
+Server: Microsoft-IIS/5.0\r
+Date: Sun, 03 Apr 2005 14:57:45 GMT\r
+X-Powered-By: ASP.NET\r
+\r
+HTTP/1.1 200 OK swsbounce\r
+Server: Microsoft-IIS/6.0\r
+Content-Type: text/html; charset=iso-8859-1\r
+Content-Length: 0\r
+\r
+</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\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
+\r
+</protocol>
+</verify>
+</testcase>