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/fewl.txt -U daniel:stenberg 33 </command> 34 <file name="log/fewl.txt"> 35 This text is here to simulate a partly downloaded file to resume 36 download on. 37 </file> 38 </client> 39 40 # Verify data after the test has been "shot" 41 <verify> 42 <errorcode> 43 33 44 </errorcode> 45 <strip> 46 ^User-Agent:.* 47 </strip> 48 <protocol> 49 GET http://%HOSTIP:%HTTPPORT/want/256 HTTP/1.1 50 Host: %HOSTIP:%HTTPPORT 51 Proxy-Authorization: Basic ZGFuaWVsOnN0ZW5iZXJn 52 Range: bytes=78- 53 Accept: */* 54 55 </protocol> 56 57 # the download target file must remain untouched 58 <file name="log/fewl.txt"> 59 This text is here to simulate a partly downloaded file to resume 60 download on. 61 </file> 62 </verify> 63 </testcase> 64