Debian Codegraph @

curl/tests/data/test188

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