quickjs-tart

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

test1059 (858B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP CONNECT
      6 proxytunnel
      7 FTP
      8 FAILURE
      9 </keywords>
     10 
     11 </info>
     12 #
     13 # Server-side
     14 <reply>
     15 <connect>
     16 HTTP/1.1 501 Method not implemented swsclose
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 Connection: close
     19 Content-Length: 0
     20 
     21 </connect>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <features>
     28 ftp
     29 proxy
     30 </features>
     31 <server>
     32 http
     33 </server>
     34 <name>
     35 HTTP CONNECT with proxytunnel to unsupported FTP URL
     36 </name>
     37 <command>
     38 ftp://test-number:%TESTNUMBER/wanted/page -p -x %HOSTIP:%HTTPPORT
     39 </command>
     40 </client>
     41 
     42 #
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 # The server doesn't implement CONNECT for ftp, so this must be a failure test
     46 <errorcode>
     47 56
     48 </errorcode>
     49 <protocol>
     50 CONNECT test-number:%TESTNUMBER HTTP/1.1
     51 Host: test-number:%TESTNUMBER
     52 User-Agent: curl/%VERSION
     53 Proxy-Connection: Keep-Alive
     54 
     55 </protocol>
     56 </verify>
     57 </testcase>