test1115: verify that unexpected 1xx responses work fine

This commit is contained in:
Daniel Stenberg 2010-05-28 00:55:11 +02:00
parent 75743b009b
commit 4b96e5c70f
2 changed files with 56 additions and 1 deletions

View 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; \

55
tests/data/test1115 Normal file
View File

@ -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>