Debian Codegraph @

curl/tests/data/test256

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