quickjs-tart

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

test165 (1044B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 IDN
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 200 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake swsclose
     18 Content-Type: text/html
     19 Funny-head: yesyes
     20 
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <features>
     31 IDN
     32 proxy
     33 codeset-utf8
     34 </features>
     35 <setenv>
     36 LC_ALL=en_US.UTF-8
     37 LC_CTYPE=en_US.UTF-8
     38 </setenv>
     39 <name>
     40 HTTP over proxy with IDN host name
     41 </name>
     42 <command>
     43 http://www.%hex[%c3%a5%c3%a4%c3%b6]hex%.se/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT http://www.gro%hex[%c3%9f]hex%e.de/page/%TESTNUMBER
     44 </command>
     45 </client>
     46 
     47 #
     48 # Verify data after the test has been "shot"
     49 <verify>
     50 <protocol>
     51 GET http://www.xn--4cab6c.se/page/%TESTNUMBER HTTP/1.1
     52 Host: www.xn--4cab6c.se
     53 User-Agent: curl/%VERSION
     54 Accept: */*
     55 Proxy-Connection: Keep-Alive
     56 
     57 GET http://www.xn--groe-xna.de/page/%TESTNUMBER HTTP/1.1
     58 Host: www.xn--groe-xna.de
     59 User-Agent: curl/%VERSION
     60 Accept: */*
     61 Proxy-Connection: Keep-Alive
     62 
     63 </protocol>
     64 </verify>
     65 </testcase>