quickjs-tart

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

test2047 (1652B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 IDN
      8 followlocation
      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: ./%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 proxy
     44 codeset-utf8
     45 </features>
     46 <setenv>
     47 LC_ALL=en_US.UTF-8
     48 LC_CTYPE=en_US.UTF-8
     49 </setenv>
     50 <name>
     51 Connection reuse with IDN host name over HTTP proxy
     52 </name>
     53 
     54 <command>
     55 http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se/%TESTNUMBER -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
     56 </command>
     57 </client>
     58 
     59 #
     60 # Verify data after the test has been "shot"
     61 <verify>
     62 <protocol>
     63 GET http://xn--4cab6c.se/%TESTNUMBER HTTP/1.1
     64 Host: xn--4cab6c.se
     65 User-Agent: curl/%VERSION
     66 Accept: */*
     67 Proxy-Connection: Keep-Alive
     68 
     69 GET http://xn--4cab6c.se/%TESTNUMBER0001 HTTP/1.1
     70 Host: xn--4cab6c.se
     71 User-Agent: curl/%VERSION
     72 Accept: */*
     73 Proxy-Connection: Keep-Alive
     74 
     75 </protocol>
     76 
     77 <stdout>
     78 HTTP/1.1 302 OK swsbounce
     79 Date: Tue, 09 Nov 2010 14:49:00 GMT
     80 Content-Length: 9
     81 Content-Type: text/plain
     82 Location: ./%TESTNUMBER0001
     83 
     84 HTTP/1.1 200 OK
     85 Date: Tue, 09 Nov 2010 14:49:00 GMT
     86 Content-Length: 3
     87 Content-Type: text/plain; charset=us-ascii
     88 
     89 OK
     90 1
     91 1
     92 3
     93 http://%hex[%c3%a5%c3%a4%c3%b6]hex%.se/%TESTNUMBER0001
     94 text/plain; charset=us-ascii
     95 200
     96 </stdout>
     97 
     98 </verify>
     99 </testcase>