quickjs-tart

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

test1077 (1270B)


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