test1411 (903B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP PUT 6 </keywords> 7 </info> 8 9 <reply> 10 <data> 11 HTTP/1.1 200 OK 12 Date: Tue, 09 Nov 2010 14:49:00 GMT 13 Server: test-server/fake 14 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 15 ETag: "21025-dc7-39462498" 16 Accept-Ranges: bytes 17 Content-Length: 6 18 Connection: close 19 Content-Type: text/html 20 Funny-head: yesyes 21 22 -foo- 23 </data> 24 </reply> 25 26 27 # 28 # Client-side 29 <client> 30 <server> 31 http 32 </server> 33 34 # make sure there's no Expect: 100-continue when there's no file to send! 35 <name> 36 HTTP with zero size file PUT 37 </name> 38 <command> 39 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/empty%TESTNUMBER 40 </command> 41 # create an empty file 42 <file name="%LOGDIR/empty%TESTNUMBER"> 43 </file> 44 </client> 45 46 # 47 # Verify data after the test has been "shot" 48 <verify> 49 <protocol> 50 PUT /%TESTNUMBER HTTP/1.1 51 Host: %HOSTIP:%HTTPPORT 52 User-Agent: curl/%VERSION 53 Accept: */* 54 Content-Length: 0 55 56 </protocol> 57 </verify> 58 </testcase>