quickjs-tart

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

test79 (756B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 HTTP
      6 HTTP GET
      7 HTTP proxy
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.0 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake swsclose
     17 Content-Type: text/html
     18 Funny-head: yesyes
     19 
     20 contents
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <features>
     31 ftp
     32 proxy
     33 </features>
     34 <name>
     35 FTP over HTTP proxy
     36 </name>
     37 <command>
     38 ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT
     39 </command>
     40 </client>
     41 
     42 #
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol>
     46 GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 User-Agent: curl/%VERSION
     49 Accept: */*
     50 Proxy-Connection: Keep-Alive
     51 
     52 </protocol>
     53 </verify>
     54 </testcase>