quickjs-tart

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

test2055 (1266B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP CONNECT
      7 HTTP proxy
      8 proxytunnel
      9 CURLOPT_CONNECT_TO
     10 SOCKS5
     11 </keywords>
     12 </info>
     13 
     14 #
     15 # Server-side
     16 <reply>
     17 <connect>
     18 HTTP/1.1 200 Connection established
     19 
     20 </connect>
     21 
     22 <data>
     23 HTTP/1.1 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Content-Length: 3
     26 Content-Type: text/plain
     27 
     28 OK
     29 </data>
     30 
     31 <datacheck>
     32 HTTP/1.1 200 Connection established
     33 
     34 HTTP/1.1 200 OK
     35 Date: Tue, 09 Nov 2010 14:49:00 GMT
     36 Content-Length: 3
     37 Content-Type: text/plain
     38 
     39 OK
     40 </datacheck>
     41 </reply>
     42 
     43 #
     44 # Client-side
     45 <client>
     46 <server>
     47 http
     48 http-proxy
     49 socks5
     50 </server>
     51 <name>
     52 --connect-to via SOCKS proxy and HTTP proxy (tunnel mode automatically)
     53 </name>
     54 <features>
     55 proxy
     56 </features>
     57 <command>
     58 http://www.example.com.%TESTNUMBER/%TESTNUMBER --connect-to ::connect.example.com.%TESTNUMBER:%HTTPPORT -x %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT
     59 </command>
     60 </client>
     61 
     62 #
     63 # Verify data after the test has been "shot"
     64 <verify>
     65 <proxy>
     66 CONNECT connect.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
     67 Host: connect.example.com.%TESTNUMBER:%HTTPPORT
     68 User-Agent: curl/%VERSION
     69 Proxy-Connection: Keep-Alive
     70 
     71 </proxy>
     72 <protocol>
     73 GET /%TESTNUMBER HTTP/1.1
     74 Host: www.example.com.%TESTNUMBER
     75 User-Agent: curl/%VERSION
     76 Accept: */*
     77 
     78 </protocol>
     79 
     80 </verify>
     81 </testcase>