quickjs-tart

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

test1230 (1168B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP CONNECT
      6 HTTP proxy
      7 IPv6
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 
     15 <data>
     16 HTTP/1.1 200 OK
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 Content-Length: 9
     19 
     20 mooooooo
     21 </data>
     22 
     23 <connect>
     24 HTTP/1.1 200 welcome dear
     25 Date: Tue, 09 Nov 2010 14:49:00 GMT
     26 
     27 </connect>
     28 
     29 <datacheck>
     30 HTTP/1.1 200 welcome dear
     31 Date: Tue, 09 Nov 2010 14:49:00 GMT
     32 
     33 HTTP/1.1 200 OK
     34 Date: Tue, 09 Nov 2010 14:49:00 GMT
     35 Content-Length: 9
     36 
     37 mooooooo
     38 </datacheck>
     39 </reply>
     40 
     41 #
     42 # Client-side
     43 <client>
     44 <features>
     45 IPv6
     46 proxy
     47 </features>
     48 <server>
     49 http-proxy
     50 http-ipv6
     51 http
     52 </server>
     53 <name>
     54 HTTP CONNECT to IPv6 numerical address
     55 </name>
     56 # 0x4ce == %TESTNUMBER, the test number
     57 <command>
     58 http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/%TESTNUMBER -p -x %HOSTIP:%HTTPPORT
     59 </command>
     60 </client>
     61 
     62 #
     63 # Verify data after the test has been "shot"
     64 <verify>
     65 <protocol>
     66 CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1
     67 Host: [1234:1234:1234::4ce]:%HTTPPORT
     68 User-Agent: curl/%VERSION
     69 Proxy-Connection: Keep-Alive
     70 
     71 GET /wanted/page/%TESTNUMBER HTTP/1.1
     72 Host: [1234:1234:1234::4ce]:%HTTPPORT
     73 User-Agent: curl/%VERSION
     74 Accept: */*
     75 
     76 </protocol>
     77 </verify>
     78 </testcase>