quickjs-tart

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

test1448 (1523B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 IDN
      7 followlocation
      8 --resolve
      9 --write-out
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <data nocheck="yes">
     17 HTTP/1.1 302 OK swsbounce
     18 Date: Tue, 09 Nov 2010 14:49:00 GMT
     19 Content-Length: 9
     20 Content-Type: text/plain
     21 Location: http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se:%HTTPPORT/%TESTNUMBER0001
     22 
     23 redirect
     24 </data>
     25 <data1 nocheck="yes">
     26 HTTP/1.1 200 OK
     27 Date: Tue, 09 Nov 2010 14:49:00 GMT
     28 Content-Length: 3
     29 Content-Type: text/plain; charset=us-ascii
     30 
     31 OK
     32 </data1>
     33 </reply>
     34 
     35 #
     36 # Client-side
     37 <client>
     38 <server>
     39 http
     40 </server>
     41 <features>
     42 IDN
     43 codeset-utf8
     44 </features>
     45 <setenv>
     46 LC_ALL=en_US.UTF-8
     47 LC_CTYPE=en_US.UTF-8
     48 </setenv>
     49 <name>
     50 Redirect following to UTF-8 IDN host name
     51 </name>
     52 
     53 <command>
     54 http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se:%HTTPPORT/%TESTNUMBER --resolve xn--4cab6c.se:%HTTPPORT:%HOSTIP -L --connect-to %HOSTIP:%HTTPPORT:%HOSTIP:%HTTPPORT
     55 </command>
     56 </client>
     57 
     58 #
     59 # Verify data after the test has been "shot"
     60 <verify>
     61 <protocol>
     62 GET /%TESTNUMBER HTTP/1.1
     63 Host: xn--4cab6c.se:%HTTPPORT
     64 User-Agent: curl/%VERSION
     65 Accept: */*
     66 
     67 GET /%TESTNUMBER0001 HTTP/1.1
     68 Host: xn--4cab6c.se:%HTTPPORT
     69 User-Agent: curl/%VERSION
     70 Accept: */*
     71 
     72 </protocol>
     73 
     74 <stdout>
     75 HTTP/1.1 302 OK swsbounce
     76 Date: Tue, 09 Nov 2010 14:49:00 GMT
     77 Content-Length: 9
     78 Content-Type: text/plain
     79 Location: http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se:%HTTPPORT/%TESTNUMBER0001
     80 
     81 HTTP/1.1 200 OK
     82 Date: Tue, 09 Nov 2010 14:49:00 GMT
     83 Content-Length: 3
     84 Content-Type: text/plain; charset=us-ascii
     85 
     86 OK
     87 </stdout>
     88 
     89 </verify>
     90 </testcase>