quickjs-tart

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

test1297 (912B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP CONNECT
      7 HTTP proxy
      8 proxytunnel
      9 </keywords>
     10 </info>
     11 
     12 #
     13 # Server-side
     14 <reply>
     15 <connect>
     16 HTTP/1.1 200 Mighty fine indeed
     17 Server: test tunnel 2000
     18 
     19 </connect>
     20 
     21 <data nocheck="yes">
     22 </data>
     23 </reply>
     24 
     25 #
     26 # Client-side
     27 <client>
     28 <server>
     29 http
     30 http-proxy
     31 </server>
     32 <name>
     33 CONNECT to peer that returns nothing
     34 </name>
     35 <command>
     36 --proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER
     37 </command>
     38 <features>
     39 proxy
     40 </features>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <proxy>
     47 CONNECT %HOSTIP:%HTTPPORT HTTP/1.1
     48 Host: %HOSTIP:%HTTPPORT
     49 User-Agent: curl/%VERSION
     50 Proxy-Connection: Keep-Alive
     51 
     52 </proxy>
     53 <protocol>
     54 GET /we/want/that/page/%TESTNUMBER HTTP/1.1
     55 Host: %HOSTIP:%HTTPPORT
     56 User-Agent: curl/%VERSION
     57 Accept: */*
     58 
     59 </protocol>
     60 # 52 - got nothing
     61 <errorcode>
     62 52
     63 </errorcode>
     64 </verify>
     65 </testcase>