test188 (1017B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 Content-Range 7 Resume 8 followlocation 9 </keywords> 10 </info> 11 12 # Server-side 13 <reply> 14 <data> 15 HTTP/1.1 301 OK swsbounce 16 Location: /%TESTNUMBER 17 Content-Length: 3 18 19 OK 20 </data> 21 <data1> 22 HTTP/1.1 200 OK 23 Connection: close 24 Content-Length: 15 25 Content-Range: bytes 50- 26 27 Actual content 28 </data1> 29 30 <datacheck> 31 HTTP/1.1 301 OK swsbounce 32 Location: /%TESTNUMBER 33 Content-Length: 3 34 35 HTTP/1.1 200 OK 36 Connection: close 37 Content-Length: 15 38 Content-Range: bytes 50- 39 40 Actual content 41 </datacheck> 42 43 </reply> 44 45 # Client-side 46 <client> 47 <server> 48 http 49 </server> 50 <name> 51 HTTP GET with resume and redirect 52 </name> 53 <command> 54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 50 -L 55 </command> 56 </client> 57 58 # Verify data after the test has been "shot" 59 <verify> 60 <protocol> 61 GET /%TESTNUMBER HTTP/1.1 62 Host: %HOSTIP:%HTTPPORT 63 Range: bytes=50- 64 User-Agent: curl/%VERSION 65 Accept: */* 66 67 GET /%TESTNUMBER HTTP/1.1 68 Host: %HOSTIP:%HTTPPORT 69 Range: bytes=50- 70 User-Agent: curl/%VERSION 71 Accept: */* 72 73 </protocol> 74 </verify> 75 </testcase>