1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6</keywords> 7</info> 8 9# 10# Crafted to cause error 11<reply> 12<data nocheck="yes"> 13HTTP/1.1 200 OK swsclose 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17ETag: "21025-dc7-39462498" 18Accept-Ranges: bytes 19Content-Length: 75 20Connection: close 21Content-Type: text/html 22Funny-head: yesyes 23 24-foo- 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<file name="%LOGDIR/save"> 32exists before command runs 33</file> 34<server> 35http 36</server> 37<name> 38--remove-on-error with --no-clobber and an added number 39</name> 40 <command option="no-output"> 41http://%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> 4918 50</errorcode> 51<protocol> 52GET /%TESTNUMBER HTTP/1.1 53Host: %HOSTIP:%HTTPPORT 54User-Agent: curl/%VERSION 55Accept: */* 56 57</protocol> 58 59# this file should be untouched 60<file name="%LOGDIR/save"> 61exists before command runs 62</file> 63# the file should be empty now 64<file2 name="%LOGDIR/save.1"> 65</file2> 66</verify> 67</testcase> 68