]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test3
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test3
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 HTTP Basic auth
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.0 200 OK\r
14 Server: test-server/fake\r
15 Content-Type: text/html\r
16 Content-Length: 0\r
17 \r
18 this is data even though Content-Length is set to zero
19 </data>
20 <datacheck>
21 HTTP/1.0 200 OK\r
22 Server: test-server/fake\r
23 Content-Type: text/html\r
24 Content-Length: 0\r
25 \r
26 </datacheck>
27 </reply>
28
29 #
30 # Client-side
31 <client>
32 <server>
33 http
34 </server>
35  <name>
36 HTTP POST with auth and contents but with content-length set to 0
37  </name>
38  <command>
39  -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HTTPPORT/3
40 </command>
41 </client>
42
43 #
44 # Verify data after the test has been "shot"
45 <verify>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol nonewline="yes">
50 POST /3 HTTP/1.1\r
51 Authorization: Basic ZmFrZTotdXNlcg==\r
52 Host: %HOSTIP:%HTTPPORT\r
53 Accept: */*\r
54 Content-Length: 37\r
55 Content-Type: application/x-www-form-urlencoded\r
56 \r
57 fooo=mooo&pooo=clue&doo=%20%20%20++++
58 </protocol>
59 </verify>
60 </testcase>