1<testcase> 2# Server-side 3<reply> 4<data> 5HTTP/1.1 200 No Authorization Required swsclose 6Server: Apache/1.3.27 (Darwin) PHP/4.1.2 7Content-Type: text/html; charset=iso-8859-1 8Connection: close 9 10PUT received fine. Thank you very much 11</data> 12</reply> 13 14# Client-side 15<client> 16<server> 17http 18</server> 19 <name> 20HTTP PUT with --anyauth (when the server requires none) 21 </name> 22 <command> 23http://%HOSTIP:%HTTPPORT/156 -T log/put156 -u testuser:testpass --anyauth 24</command> 25<file name="log/put156"> 26This is data we upload with PUT 27a second line 28line three 29four is the number of lines 30</file> 31</client> 32 33# Verify data after the test has been "shot" 34<verify> 35<strip> 36^User-Agent:.* 37</strip> 38<protocol> 39PUT /156 HTTP/1.1 40User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3 41Host: %HOSTIP:%HTTPPORT 42Accept: */* 43Content-Length: 85 44Expect: 100-continue 45 46This is data we upload with PUT 47a second line 48line three 49four is the number of lines 50</protocol> 51</verify> 52</testcase> 53