]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test1054
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test1054
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 followlocation
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.1 301 OK swsclose\r
15 Location: moo/testcase/10540002\r
16 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
17 Connection: close\r
18 \r
19 </data>
20 <data2>
21 HTTP/1.1 200 OK swsclose\r
22 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
23 Connection: close\r
24 \r
25 body
26 </data2>
27 <datacheck>
28 HTTP/1.1 301 OK swsclose\r
29 Location: moo/testcase/10540002\r
30 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
31 Connection: close\r
32 \r
33 HTTP/1.1 200 OK swsclose\r
34 Date: Thu, 31 Jul 2008 14:49:00 GMT\r
35 Connection: close\r
36 \r
37 body
38 </datacheck>
39 </reply>
40
41 #
42 # Client-side
43 <client>
44 <server>
45 http
46 </server>
47  <name>
48 HTTP POST from file with 301 redirect and --post301
49  </name>
50 <file name="log/test1054.txt">
51 field=data
52 </file>
53  <command>
54 http://%HOSTIP:%HTTPPORT/blah/1054 -L -d @log/test1054.txt --post301
55 </command>
56 </client>
57
58 #
59 # Verify data after the test has been "shot"
60 <verify>
61 <strip>
62 ^User-Agent:.*
63 </strip>
64 <protocol nonewline="yes">
65 POST /blah/1054 HTTP/1.1\r
66 Host: %HOSTIP:%HTTPPORT\r
67 Accept: */*\r
68 Content-Length: 10\r
69 Content-Type: application/x-www-form-urlencoded\r
70 \r
71 field=dataPOST /blah/moo/testcase/10540002 HTTP/1.1\r
72 Host: %HOSTIP:%HTTPPORT\r
73 Accept: */*\r
74 Content-Length: 10\r
75 Content-Type: application/x-www-form-urlencoded\r
76 \r
77 field=data
78 </protocol>
79 </verify>
80 </testcase>