]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test189
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test189
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 301 OK swsbounce
6 Location: /189
7 Content-Length: 2
8
9 OK
10 </data>
11 <data1>
12 HTTP/1.1 200 OK 
13 Connection: close
14 Content-Length: 15
15
16 Actual content
17 </data1>
18
19 <datacheck>
20 HTTP/1.1 301 OK swsbounce
21 Location: /189
22 Content-Length: 2
23
24 HTTP/1.1 200 OK 
25 Connection: close
26 Content-Length: 15
27
28 </datacheck>
29
30 </reply>
31
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37  <name>
38 HTTP GET with resume and redirect (to a page that doesn't resume)
39  </name>
40  <command>
41 http://%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>
51 GET /189 HTTP/1.1\r
52 Range: bytes=50-\r
53 User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)\r
54 Host: %HOSTIP:%HTTPPORT\r
55 Accept: */*\r
56 \r
57 GET /189 HTTP/1.1\r
58 Range: bytes=50-\r
59 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\r
60 Host: %HOSTIP:%HTTPPORT\r
61 Accept: */*\r
62 \r
63 </protocol>
64 # 33 is CURLE_RANGE_ERROR
65 <errorcode>
66 33
67 </errorcode>
68 </verify>
69 </testcase>