xref: /curl/tests/data/test189 (revision 3fd80c7b)
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: /%TESTNUMBER
14Content-Length: 3
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: /%TESTNUMBER
29Content-Length: 3
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/%TESTNUMBER -C 50 -L
49</command>
50</client>
51
52# Verify data after the test has been "shot"
53<verify>
54<protocol>
55GET /%TESTNUMBER HTTP/1.1
56Host: %HOSTIP:%HTTPPORT
57Range: bytes=50-
58User-Agent: curl/%VERSION
59Accept: */*
60
61GET /%TESTNUMBER HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63Range: bytes=50-
64User-Agent: curl/%VERSION
65Accept: */*
66
67</protocol>
68# 33 is CURLE_RANGE_ERROR
69<errorcode>
7033
71</errorcode>
72</verify>
73</testcase>
74