1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data> 12 HTTP/1.1 301 OK swsbounce 13 Location: /189 14 Content-Length: 2 15 16 OK 17 </data> 18 <data1> 19 HTTP/1.1 200 OK 20 Connection: close 21 Content-Length: 15 22 23 Actual content 24 </data1> 25 26 <datacheck> 27 HTTP/1.1 301 OK swsbounce 28 Location: /189 29 Content-Length: 2 30 31 HTTP/1.1 200 OK 32 Connection: close 33 Content-Length: 15 34 35 </datacheck> 36 37 </reply> 38 39 # Client-side 40 <client> 41 <server> 42 http 43 </server> 44 <name> 45 HTTP GET with resume and redirect (to a page that doesn't resume) 46 </name> 47 <command> 48 http://%HOSTIP:%HTTPPORT/189 -C 50 -L 49 </command> 50 </client> 51 52 # Verify data after the test has been "shot" 53 <verify> 54 <strip> 55 ^User-Agent:.* 56 </strip> 57 <protocol> 58 GET /189 HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 Range: bytes=50- 61 User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled) 62 Accept: */* 63 64 GET /189 HTTP/1.1 65 Host: %HOSTIP:%HTTPPORT 66 Range: bytes=50- 67 User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.2 libidn/0.5.2 68 Accept: */* 69 70 </protocol> 71 # 33 is CURLE_RANGE_ERROR 72 <errorcode> 73 33 74 </errorcode> 75 </verify> 76 </testcase> 77