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