]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test 2081: add a valid reply for the second request
authorFabian Keil <fk@fabiankeil.de>
Tue, 30 Mar 2021 12:22:11 +0000 (14:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Jun 2022 10:26:14 +0000 (12:26 +0200)
... 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

tests/data/test2081

index a6733e737beb2423d60b0b256270d586c3e10602..add9292522007c2b51d26cae65423b6a932b5e7a 100644 (file)
@@ -19,6 +19,12 @@ Connection: close
 \r
 This server reply is for testing a simple Location: following
 </data>
+<data2>
+HTTP/1.1 200 This is another weirdo text message swsclose\r
+Connection: close\r
+\r
+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\r
 Host: %HOSTIP:%HTTPPORT\r
@@ -60,6 +63,10 @@ Location: data/%TESTNUMBER0002.txt?coolsite=yes
 Content-Length: 62\r
 Connection: close\r
 \r
+HTTP/1.1 200 This is another weirdo text message swsclose\r
+Connection: close\r
+\r
+Thanks for following.
 http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER
 </stdout>
 </verify>