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.1 100 Continue 12 13 HTTP/1.1 401 Bad Auth swsclose 14 Date: Thu, 09 Nov 2010 14:49:00 GMT 15 WWW-Authenticate: Basic Realm=authenticate 16 Server: test-server/fake 17 </data> 18 <datacheck> 19 HTTP/1.1 100 Continue 20 21 </datacheck> 22 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 http 29 </server> 30 <name> 31 HTTP PUT from file with 100 + 401 responses and -f without auth given 32 </name> 33 <command> 34 http://%HOSTIP:%HTTPPORT/we/want/281 -f -T log/test281.txt 35 </command> 36 <file name="log/test281.txt"> 37 Weird 38 file 39 to 40 upload 41 </file> 42 </client> 43 44 # Verify data after the test has been "shot" 45 <verify> 46 <errorcode> 47 22 48 </errorcode> 49 <strip> 50 ^User-Agent:.* 51 </strip> 52 <protocol> 53 PUT /we/want/281 HTTP/1.1 54 Host: %HOSTIP:%HTTPPORT 55 Accept: */* 56 Content-Length: 38 57 Expect: 100-continue 58 59 Weird 60 file 61 to 62 upload 63 </protocol> 64 </verify> 65 </testcase> 66