| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP PUT |
| 5 |
chunked Transfer-Encoding |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
<data> |
| 12 |
HTTP/1.0 200 OK |
| 13 |
Server: test-server/fake |
| 14 |
Content-Type: text/html |
| 15 |
Content-Length: 6 |
| 16 |
|
| 17 |
blaha |
| 18 |
</data> |
| 19 |
</reply> |
| 20 |
|
| 21 |
# |
| 22 |
# Client-side |
| 23 |
<client> |
| 24 |
<server> |
| 25 |
http |
| 26 |
</server> |
| 27 |
<name> |
| 28 |
HTTP PUT from stdin with set size, disabling chunked transfer-encoding |
| 29 |
</name> |
| 30 |
<command> |
| 31 |
-T - -H "Transfer-Encoding:" -H "Content-Length: 14" http://%HOSTIP:%HTTPPORT/98 |
| 32 |
</command> |
| 33 |
<stdin> |
| 34 |
data on stdin |
| 35 |
</stdin> |
| 36 |
</client> |
| 37 |
|
| 38 |
# |
| 39 |
# Verify data after the test has been "shot" |
| 40 |
<verify> |
| 41 |
<strip> |
| 42 |
^User-Agent:.* |
| 43 |
</strip> |
| 44 |
<protocol> |
| 45 |
PUT /98 HTTP/1.1 |
| 46 |
Host: 127.0.0.1:%HTTPPORT |
| 47 |
Accept: */* |
| 48 |
Content-Length: 14 |
| 49 |
Expect: 100-continue |
| 50 |
|
| 51 |
data on stdin |
| 52 |
</protocol> |
| 53 |
</verify> |