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