quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1034 (696B)


      1 <?xml version="1.0" encoding="ISO-8859-1"?>
      2 <testcase>
      3 <info>
      4 <keywords>
      5 HTTP
      6 HTTP GET
      7 HTTP proxy
      8 IDN
      9 FAILURE
     10 config file
     11 </keywords>
     12 </info>
     13 
     14 #
     15 # Server-side
     16 <reply>
     17 </reply>
     18 
     19 #
     20 # Client-side
     21 <client>
     22 <server>
     23 none
     24 </server>
     25 <features>
     26 IDN
     27 http
     28 proxy
     29 codeset-utf8
     30 </features>
     31 <setenv>
     32 LC_ALL=
     33 LC_CTYPE=en_US.UTF-8
     34 </setenv>
     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-%hex[%e2%90]hex%.local/page/%TESTNUMBER"
     43 </stdin>
     44 <command>
     45 -K - -x %HOSTIP:%NOLISTENPORT
     46 </command>
     47 </client>
     48 
     49 #
     50 <verify>
     51 <errorcode>
     52 3
     53 </errorcode>
     54 </verify>
     55 </testcase>