Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1034
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 IDN
8 FAILURE
9 config file
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 </reply>
17
18 #
19 # Client-side
20 <client>
21 <server>
22 none
23 </server>
24 <features>
25 idn
26 http
27 </features>
28 <setenv>
29 LC_ALL=
30 LC_CTYPE=en_US.UTF-8
31 </setenv>
32 <precheck>
33 perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
34 </precheck>
35  <name>
36 HTTP over proxy with malformatted IDN host name
37  </name>
38
39 # This host name contains an invalid UTF-8 byte sequence that can't be
40 # converted into an IDN name
41 <stdin>
42 url = "http://invalid-utf8-รข\90.local/page/1034"
43 </stdin>
44  <command>
45 -K - -x %HOSTIP:%HTTPPORT
46 </command>
47 </client>
48
49 #
50 <verify>
51 <errorcode>
52 3
53 </errorcode>
54 </verify>
55 </testcase>