test 2081: add a valid reply for the second request

... so the test works when using a HTTP proxy like
Privoxy that sends an error message if the server
doesn't send data.

Closes #8959
This commit is contained in:
Fabian Keil 2021-03-30 14:22:11 +02:00 committed by Daniel Stenberg
parent 9dfa1dcfa0
commit 1d288d46d5
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -19,6 +19,12 @@ Connection: close
This server reply is for testing a simple Location: following
</data>
<data2>
HTTP/1.1 200 This is another weirdo text message swsclose
Connection: close
Thanks for following.
</data2>
</reply>
# Client-side
@ -36,9 +42,6 @@ http://user:pass@%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER#anchor --location --r
# Verify data after the test has been "shot"
<verify>
<errorcode>
52
</errorcode>
<protocol>
GET /we/want/our/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
@ -60,6 +63,10 @@ Location: data/%TESTNUMBER0002.txt?coolsite=yes
Content-Length: 62
Connection: close
HTTP/1.1 200 This is another weirdo text message swsclose
Connection: close
Thanks for following.
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER
</stdout>
</verify>