test379 (1111B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # 10 # Crafted to cause error 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 200 OK swsclose 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: 75 20 Connection: close 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 </reply> 27 28 # 29 # Client-side 30 <client> 31 <file name="%LOGDIR/save"> 32 exists before command runs 33 </file> 34 <server> 35 http 36 </server> 37 <name> 38 --remove-on-error with --no-clobber and an added number 39 </name> 40 <command option="no-output"> 41 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/save --remove-on-error --no-clobber 42 </command> 43 </client> 44 45 # 46 # Verify data after the test has been "shot". 47 <verify> 48 <errorcode> 49 18 50 </errorcode> 51 <protocol> 52 GET /%TESTNUMBER HTTP/1.1 53 Host: %HOSTIP:%HTTPPORT 54 User-Agent: curl/%VERSION 55 Accept: */* 56 57 </protocol> 58 59 # this file should be untouched 60 <file name="%LOGDIR/save"> 61 exists before command runs 62 </file> 63 # the file should be empty now 64 <file2 name="%LOGDIR/save.1"> 65 </file2> 66 </verify> 67 </testcase>