Debian Codegraph @

deps/curl/tests/data/test256

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