]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test174
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test174
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 200 beng swsclose\r
13 Server: Microsoft-IIS/6.0\r
14 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
15 Content-Type: text/html; charset=iso-8859-1\r
16 Content-Length: 26\r
17 \r
18 This is not the real page
19 </data>
20 </reply>
21
22 # Client-side
23 <client>
24
25 <server>
26 http
27 </server>
28  <name>
29 HTTP POST --anyauth to server not requiring any auth at all
30  </name>
31  <command>
32 http://%HOSTIP:%HTTPPORT/174 -u testuser:testpass --anyauth -d "junkelijunk"
33 </command>
34 </client>
35
36 # Verify data after the test has been "shot"
37 <verify>
38 <strip>
39 ^User-Agent:.*
40 </strip>
41 <protocol nonewline="yes">
42 POST /174 HTTP/1.1\r
43 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6\r
44 Host: %HOSTIP:%HTTPPORT\r
45 Accept: */*\r
46 Content-Length: 11\r
47 Content-Type: application/x-www-form-urlencoded\r
48 \r
49 junkelijunk
50 </protocol>
51 </verify>
52 </testcase>