1<testcase>
2# Similar to test33
3<info>
4<keywords>
5HTTP
6HTTP PUT
7Resume
8Content-Range
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.1 OK swsclose
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake
18Accept-Ranges: bytes
19Content-Length: 0
20Connection: close
21Content-Type: text/html
22
23</data>
24</reply>
25
26# Client-side
27<client>
28<server>
29http
30</server>
31 <name>
32HTTP PUT with resume from end of already-uploaded file
33 </name>
34<file name="log/test1041.txt">
35012345678
36012345678
37012345678
38012345678
39012345678
40012345678
41012345678
42012345678
43012345678
44012345678
45</file>
46 <command>
47http://%HOSTIP:%HTTPPORT/1041 -Tlog/test1041.txt -C -
48</command>
49</client>
50
51# Verify data after the test has been "shot"
52<verify>
53<strip>
54^User-Agent:.*
55</strip>
56# curl doesn't do a HEAD request on the remote file so it has no idea whether
57# it can skip part of the file or not.  Instead, it sends the entire file.
58<protocol>
59PUT /1041 HTTP/1.1
60Content-Range: bytes 0-99/100
61Host: %HOSTIP:%HTTPPORT
62Accept: */*
63Content-Length: 100
64Expect: 100-continue
65
66012345678
67012345678
68012345678
69012345678
70012345678
71012345678
72012345678
73012345678
74012345678
75012345678
76</protocol>
77</verify>
78</testcase>
79