test3204 (869B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 304 Not Modified 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 ETag: "21025-dc7-39462498" 17 18 </data> 19 </reply> 20 21 # 22 # Client-side 23 <client> 24 <server> 25 http 26 </server> 27 <name> 28 Use --etag-compare and --etag-save on an existing file 29 </name> 30 <file name="%LOGDIR/etag%TESTNUMBER"> 31 "21025-dc7-39462498" 32 </file> 33 <command> 34 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-compare %LOGDIR/etag%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER 35 </command> 36 </client> 37 38 # Verify that the file still exists with the correct etag value. 39 <verify> 40 <protocol> 41 GET /%TESTNUMBER HTTP/1.1 42 Host: %HOSTIP:%HTTPPORT 43 User-Agent: curl/%VERSION 44 Accept: */* 45 If-None-Match: "21025-dc7-39462498" 46 47 </protocol> 48 <file name="%LOGDIR/etag%TESTNUMBER"> 49 "21025-dc7-39462498" 50 </file> 51 </verify> 52 </testcase>