]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test1034
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test1034
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 IDN
8 FAILURE
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <data>
16 HTTP/1.0 503 Service Unavailable\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Server: test-server/fake swsclose\r
19 Content-Type: text/html\r
20 Funny-head: yesyes\r
21 \r
22 </data>
23 </reply>
24
25 #
26 # Client-side
27 <client>
28 <server>
29 http
30 </server>
31 <features>
32 idn
33 </features>
34 <setenv>
35 CHARSET=UTF-8
36 </setenv>
37  <name>
38 HTTP over proxy with malformatted IDN host name
39  </name>
40
41 # This host name contains an invalid UTF-8 byte sequence that can't be
42 # converted into an IDN name
43  <command>
44 http://invalid-utf8-â\90.local/page/1034 -x %HOSTIP:%HTTPPORT
45 </command>
46 </client>
47
48 #
49 # Verify data after the test has been "shot"
50 <verify>
51 <strip>
52 ^User-Agent:.*
53 </strip>
54 <protocol>
55 GET http://invalid-utf8-â\90.local/page/1034 HTTP/1.1\r
56 Host: invalid-utf8-â\90.local\r
57 Accept: */*\r
58 Proxy-Connection: Keep-Alive\r
59 \r
60 </protocol>
61 </verify>
62 </testcase>