test10 (831B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP PUT 6 </keywords> 7 </info> 8 # Server-side 9 <reply> 10 <data> 11 HTTP/1.0 200 OK swsclose 12 Date: Tue, 09 Nov 2010 14:49:00 GMT 13 Server: test-server/fake 14 15 blablabla 16 17 </data> 18 </reply> 19 20 # Client-side 21 <client> 22 <server> 23 http 24 </server> 25 <name> 26 simple HTTP PUT from file 27 </name> 28 <command> 29 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt 30 </command> 31 <file name="%LOGDIR/test%TESTNUMBER.txt"> 32 Weird 33 file 34 to 35 upload 36 for 37 testing 38 the 39 PUT 40 feature 41 </file> 42 </client> 43 44 # Verify data after the test has been "shot" 45 <verify> 46 <protocol> 47 PUT /we/want/%TESTNUMBER HTTP/1.1 48 Host: %HOSTIP:%HTTPPORT 49 User-Agent: curl/%VERSION 50 Accept: */* 51 Content-Length: 78 52 53 Weird 54 file 55 to 56 upload 57 for 58 testing 59 the 60 PUT 61 feature 62 </protocol> 63 </verify> 64 </testcase>