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