quickjs-tart

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

test1245 (844B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 HTTP
      6 HTTP GET
      7 --proto
      8 --proto-redir
      9 followlocation
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <data>
     17 HTTP/1.1 301 OK swsclose
     18 Date: Tue, 09 Nov 2010 14:49:00 GMT
     19 Server: test-server/fake
     20 Content-Length: 0
     21 Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
     22 Connection: close
     23 
     24 </data>
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <server>
     31 http
     32 ftp
     33 </server>
     34 <name>
     35 --proto deny must override --proto-redir allow
     36 </name>
     37 <command>
     38 --location --proto +all,-ftp --proto-redir -all,+ftp http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     39 </command>
     40 </client>
     41 
     42 #
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol>
     46 GET /%TESTNUMBER HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 User-Agent: curl/%VERSION
     49 Accept: */*
     50 
     51 </protocol>
     52 # 1 - Protocol ftp not supported or disabled in libcurl
     53 <errorcode>
     54 1
     55 </errorcode>
     56 </verify>
     57 </testcase>