]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test510
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test510
1 <testcase>
2 #
3 # Server-side
4 <reply>
5 <data mode="text">
6 HTTP/1.1 200 OK
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Server: test-server/fake swsclose
9 Connection: close
10 Content-Type: text/html
11
12 hello
13 </data>
14 </reply>
15
16 # Client-side
17 <client>
18 <server>
19 http
20 </server>
21 # tool is what to use instead of 'curl'
22 <tool>
23 lib510
24 </tool>
25
26  <name>
27 send HTTP POST using read callback, using chunked transfer-encoding
28  </name>
29  <command>
30 http://%HOSTIP:%HTTPPORT/510
31 </command>
32 </client>
33
34 #
35 # Verify data after the test has been "shot"
36 <verify>
37 <protocol>
38 POST /510 HTTP/1.1\r
39 Host: %HOSTIP:%HTTPPORT\r
40 Accept: */*\r
41 Transfer-Encoding: chunked\r
42 Content-Type: application/x-www-form-urlencoded\r
43 Expect: 100-continue\r
44 \r
45 3\r
46 one\r
47 3\r
48 two\r
49 5\r
50 three\r
51 1d\r
52 and a final longer crap: four\r
53 0\r
54 \r
55 </protocol>
56 </verify>
57 </testcase>