quickjs-tart

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

test1470 (961B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP
      6 HTTP GET
      7 SOCKS5
      8 SOCKS5h
      9 UnixSockets
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <data>
     17 HTTP/1.1 200 OK
     18 Date: Tue, 09 Nov 2010 14:49:00 GMT
     19 Server: test-server/fake
     20 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     21 ETag: "21025-dc7-39462498"
     22 Accept-Ranges: bytes
     23 Content-Length: 6
     24 Connection: close
     25 Content-Type: text/html
     26 Funny-head: yesyes
     27 
     28 -foo-
     29 </data>
     30 </reply>
     31 
     32 #
     33 # Client-side
     34 <client>
     35 <features>
     36 proxy
     37 UnixSockets
     38 </features>
     39 <server>
     40 https
     41 socks5unix
     42 </server>
     43 <name>
     44 HTTPS GET with host name using SOCKS5h via Unix sockets
     45 </name>
     46 <command>
     47 https://this.is.a.host.name:%HTTPSPORT/%TESTNUMBER --insecure --proxy socks5h://localhost%SOCKSUNIXPATH
     48 </command>
     49 </client>
     50 
     51 #
     52 # Verify data after the test has been "shot"
     53 <verify>
     54 <protocol>
     55 GET /%TESTNUMBER HTTP/1.1
     56 Host: this.is.a.host.name:%HTTPSPORT
     57 User-Agent: curl/%VERSION
     58 Accept: */*
     59 
     60 </protocol>
     61 <socks>
     62 atyp 3 => this.is.a.host.name
     63 </socks>
     64 </verify>
     65 </testcase>