quickjs-tart

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

test1265 (741B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP proxy
      6 http_proxy
      7 NO_PROXY
      8 noproxy
      9 IPv6
     10 </keywords>
     11 </info>
     12 
     13 # Server-side
     14 <reply>
     15 <data>
     16 HTTP/1.1 200 OK
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 Server: test-server/fake
     19 Content-Length: 4
     20 Content-Type: text/html
     21 
     22 foo
     23 </data>
     24 </reply>
     25 
     26 # Client-side
     27 <client>
     28 <features>
     29 http
     30 IPv6
     31 </features>
     32 <server>
     33 http-ipv6
     34 </server>
     35 <name>
     36 NO_PROXY with IPv6 numerical address
     37 </name>
     38 <setenv>
     39 http_proxy=http://%HOSTIP:%HTTPPORT
     40 NO_PROXY=::1
     41 </setenv>
     42 <command>
     43 http://%HOST6IP:%HTTP6PORT/%TESTNUMBER
     44 </command>
     45 </client>
     46 
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <protocol>
     50 GET /%TESTNUMBER HTTP/1.1
     51 Host: %HOST6IP:%HTTP6PORT
     52 User-Agent: curl/%VERSION
     53 Accept: */*
     54 
     55 </protocol>
     56 </verify>
     57 </testcase>