• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 200 OK swsclose
16Date: Tue, 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/test%TESTNUMBER.txt">
35012345678
36012345678
37012345678
38012345678
39012345678
40012345678
41012345678
42012345678
43012345678
44012345678
45</file>
46 <command>
47http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Tlog/test%TESTNUMBER.txt -C -
48</command>
49</client>
50
51# Verify data after the test has been "shot"
52<verify>
53# curl doesn't do a HEAD request on the remote file so it has no idea whether
54# it can skip part of the file or not.  Instead, it sends the entire file.
55<protocol>
56PUT /%TESTNUMBER HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58Content-Range: bytes 0-99/100
59User-Agent: curl/%VERSION
60Accept: */*
61Content-Length: 100
62Expect: 100-continue
63
64012345678
65012345678
66012345678
67012345678
68012345678
69012345678
70012345678
71012345678
72012345678
73012345678
74</protocol>
75</verify>
76</testcase>
77