| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP PUT |
| 5 |
resume upload |
| 6 |
Content-Range |
| 7 |
</keywords> |
| 8 |
</info> |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
<data> |
| 12 |
HTTP/1.1 OK swsclose |
| 13 |
|
| 14 |
</data> |
| 15 |
</reply> |
| 16 |
|
| 17 |
# Client-side |
| 18 |
<client> |
| 19 |
<server> |
| 20 |
http |
| 21 |
</server> |
| 22 |
<name> |
| 23 |
HTTP PUT with resume |
| 24 |
</name> |
| 25 |
<file name="log/test33.txt"> |
| 26 |
012345678 |
| 27 |
012345678 |
| 28 |
012345678 |
| 29 |
012345678 |
| 30 |
012345678 |
| 31 |
012345678 |
| 32 |
012345678 |
| 33 |
012345678 |
| 34 |
012345678 |
| 35 |
012345678 |
| 36 |
</file> |
| 37 |
<command> |
| 38 |
http://%HOSTIP:%HTTPPORT/33 -Tlog/test33.txt -C 50 |
| 39 |
</command> |
| 40 |
</client> |
| 41 |
|
| 42 |
# Verify data after the test has been "shot" |
| 43 |
<verify> |
| 44 |
<strip> |
| 45 |
^User-Agent:.* |
| 46 |
</strip> |
| 47 |
<protocol> |
| 48 |
PUT /33 HTTP/1.1 |
| 49 |
Content-Range: bytes 50-99/100 |
| 50 |
User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled) |
| 51 |
Host: 127.0.0.1:%HTTPPORT |
| 52 |
Accept: */* |
| 53 |
Content-Length: 50 |
| 54 |
Expect: 100-continue |
| 55 |
|
| 56 |
012345678 |
| 57 |
012345678 |
| 58 |
012345678 |
| 59 |
012345678 |
| 60 |
012345678 |
| 61 |
</protocol> |
| 62 |
</verify> |