xref: /curl/tests/data/test256 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7Resume
8FAILURE
9</keywords>
10</info>
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.0 200 Mooo
15Date: Mon, 13 Nov 2000 13:41:09 GMT
16Server: myown/1.0
17Connection: close
18
19todelooooo lalalala yada yada, we know nothing about ranges ;-)
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28<name>
29HTTP resume request over proxy with auth without server supporting it
30</name>
31 <command option="no-output">
32-x http://%HOSTIP:%HTTPPORT http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -C - --no-include -o %LOGDIR/fewl%TESTNUMBER.txt -U daniel:stenberg
33</command>
34<file name="%LOGDIR/fewl%TESTNUMBER.txt">
35This text is here to simulate a partly downloaded file to resume
36download on.
37</file>
38<features>
39proxy
40</features>
41</client>
42
43# Verify data after the test has been "shot"
44<verify>
45<errorcode>
4633
47</errorcode>
48<protocol>
49GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51Proxy-Authorization: Basic ZGFuaWVsOnN0ZW5iZXJn
52Range: bytes=78-
53User-Agent: curl/%VERSION
54Accept: */*
55Proxy-Connection: Keep-Alive
56
57</protocol>
58
59# the download target file must remain untouched
60<file name="%LOGDIR/fewl%TESTNUMBER.txt">
61This text is here to simulate a partly downloaded file to resume
62download on.
63</file>
64</verify>
65</testcase>
66