test2306 (1150B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 # 9 # This reproduces the #11101 issue, when the second response comes back 10 # with the first header being "folded" 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 6 20 Content-Type: text/html 21 Funny-head: yesyes 22 23 -foo- 24 </data> 25 <data2 nocheck="yes"> 26 HTTP/1.1 200 OK swsclose 27 Access-Control-Allow-Origin: * 28 Connection: Keep-Alive 29 Content-Type: text/html; charset=utf-8 30 Date: Wed, 10 May 2023 14:58:08 GMT 31 32 -foo- 33 </data2> 34 </reply> 35 36 # Client-side 37 <client> 38 <server> 39 http 40 </server> 41 # tool to run 42 <tool> 43 lib%TESTNUMBER 44 </tool> 45 46 <name> 47 HTTP GET reused handle with first header folded 48 </name> 49 <command> 50 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 51 </command> 52 </client> 53 54 # 55 # Verify data after the test has been "shot" 56 <verify> 57 <protocol> 58 GET /%TESTNUMBER HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 Accept: */* 61 62 GET /%TESTNUMBER0002 HTTP/1.1 63 Host: %HOSTIP:%HTTPPORT 64 Accept: */* 65 66 </protocol> 67 </verify> 68 </testcase>