test498 (1672B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 301 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 Location: / 21 Connection: close 22 Content-Type: text/html 23 %repeat[1700 x Repeat-this-Header-a-large-number-of-times: Dorothy lived in the midst of the great Kansas prairies, with Uncle Henry, who was a farmer, and Aunt Em, who was the farmer's wife. Their house was small, for the lumber to build it had to be carried by wagon many miles. There were four walls, a floor and a roof, which made one room; and this room contained a rusty looking cookstove, a cupboard for the dishes, a table, three or four chairs, and the beds. Uncle Henry and Aunt Em had a big bed in one corner, and Dorothy a little bed in another corner. There was no garret at all, and no cellar--except a small hole dug in the ground, called a cyclone cellar, where the family could go in case one of those great whirlwinds arose, mighty enough to crush any building in its path. It was reached by a trap door in the middle of the floor, from which a ladder led down into the small, dark hole.%0a]% 24 -foo- 25 </data> 26 </reply> 27 28 # 29 # Client-side 30 <client> 31 <server> 32 http 33 </server> 34 <name> 35 Reject too large HTTP response headers on endless redirects 36 </name> 37 <command> 38 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --max-redirs 400 --location 39 </command> 40 </client> 41 42 # 43 # Verify data after the test has been "shot" 44 <verify> 45 # curl: (56) Too large response headers: 6144086 > 6144000 46 <errorcode> 47 56 48 </errorcode> 49 </verify> 50 </testcase>