mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
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:
parent
9dfa1dcfa0
commit
1d288d46d5
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user