test473 (969B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 # 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 301 funky chunky! 13 Server: fakeit/0.9 fakeitbad/1.0 14 Location: /redirected 15 Transfer-Encoding: chunked 16 Trailer: chunky-trailer 17 Connection: mooo 18 ETag: W/"asdf" 19 20 40 21 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 22 30 23 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 24 21;heresatest=moooo 25 cccccccccccccccccccccccccccccccc 26 27 0 28 chunky-trailer: header data 29 30 </data> 31 </reply> 32 33 # 34 # Client-side 35 <client> 36 <server> 37 http 38 </server> 39 <name> 40 Check if --etag-save saved correct etag to a file on 301 41 </name> 42 <command> 43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER 44 </command> 45 </client> 46 47 # 48 # Verify data after the test has been "shot" 49 <verify> 50 <protocol> 51 GET /%TESTNUMBER HTTP/1.1 52 Host: %HOSTIP:%HTTPPORT 53 User-Agent: curl/%VERSION 54 Accept: */* 55 56 </protocol> 57 <file name="%LOGDIR/etag%TESTNUMBER"> 58 W/"asdf" 59 </file> 60 </verify> 61 62 </testcase>