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