quickjs-tart

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

test1631 (1982B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 HTTPS proxy
      6 flaky
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 
     13 # This is the HTTPS proxy response
     14 <connect>
     15 HTTP/1.1 200 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Content-Type: text/html
     19 Funny-head: yesyes
     20 Content-Length: 0
     21 
     22 </connect>
     23 
     24 # This is the FTP server response. The Life and Adventures of Robinson Crusoe
     25 <data>
     26 I was born in the year 1632, in the city of York, of a good family, though not
     27 of that country, myfather being a foreigner of Bremen, who settled first at
     28 Hull.  He got a good estate by merchandise,and leaving off his trade, lived
     29 afterwards at York, from whence he had married my mother, whoserelations were
     30 named Robinson, a very good family in that country, and from whom I was
     31 calledRobinson Kreutznaer; but, by the usual corruption of words in England,
     32 we are now called-nay wecall ourselves and write our name-Crusoe; and so my
     33 companions always called me.
     34 </data>
     35 </reply>
     36 
     37 # Client-side
     38 <client>
     39 <server>
     40 ftp
     41 https-proxy
     42 </server>
     43 <name>
     44 FTP through HTTPS-proxy
     45 </name>
     46 <command>
     47 -p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure
     48 </command>
     49 <features>
     50 http
     51 proxy
     52 </features>
     53 </client>
     54 
     55 # Verify data after the test has been "shot"
     56 <verify>
     57 <strip>
     58 QUIT
     59 </strip>
     60 
     61 # The second CONNECT will be made to the dynamic port number the FTP server
     62 # opens for us, so we can't compare with a known pre-existing number!
     63 <strippart>
     64 s/((https.proxy):(\d+))/$2:12345/
     65 s/^(User-Agent: curl).*/$1/
     66 </strippart>
     67 <proxy>
     68 CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
     69 Host: ftp.site.thru.https.proxy:12345
     70 User-Agent: curl
     71 Proxy-Connection: Keep-Alive
     72 
     73 CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
     74 Host: ftp.site.thru.https.proxy:12345
     75 User-Agent: curl
     76 Proxy-Connection: Keep-Alive
     77 
     78 </proxy>
     79 <protocol>
     80 USER anonymous
     81 PASS ftp@example.com
     82 PWD
     83 EPSV
     84 TYPE I
     85 SIZE %TESTNUMBER
     86 RETR %TESTNUMBER
     87 QUIT
     88 </protocol>
     89 </verify>
     90 </testcase>