test256 (1314B)
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/%TESTNUMBER -C - --no-include -o %LOGDIR/fewl%TESTNUMBER.txt -U daniel:stenberg 33 </command> 34 <file name="%LOGDIR/fewl%TESTNUMBER.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 <protocol> 49 GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1 50 Host: %HOSTIP:%HTTPPORT 51 Proxy-Authorization: Basic %b64[daniel:stenberg]b64% 52 Range: bytes=78- 53 User-Agent: curl/%VERSION 54 Accept: */* 55 Proxy-Connection: Keep-Alive 56 57 </protocol> 58 59 # the download target file must remain untouched 60 <file name="%LOGDIR/fewl%TESTNUMBER.txt"> 61 This text is here to simulate a partly downloaded file to resume 62 download on. 63 </file> 64 </verify> 65 </testcase>