test1271 (682B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 --write-out 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 This is a weirdo text message swsclose 14 Content-Length: 4 15 Connection: close 16 17 Moo 18 </data> 19 </reply> 20 21 # Client-side 22 <client> 23 <server> 24 http 25 </server> 26 <name> 27 --write-out from file with empty file 28 </name> 29 <command> 30 http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w @%LOGDIR/blank%TESTNUMBER 31 </command> 32 <file name="%LOGDIR/blank%TESTNUMBER"> 33 </file> 34 </client> 35 36 # Verify data after the test has been "shot" 37 <verify> 38 <protocol> 39 GET /we/want/our/%TESTNUMBER HTTP/1.1 40 Host: %HOSTIP:%HTTPPORT 41 User-Agent: curl/%VERSION 42 Accept: */* 43 44 </protocol> 45 </verify> 46 </testcase>