File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test145
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    1: <testcase>
    2: <info>
    3: <keywords>
    4: FTP
    5: NLST
    6: PORT
    7: </keywords>
    8: </info>
    9: # Server-side
   10: <reply>
   11: <servercmd>
   12: REPLY NLST 550 Have a taste on this!
   13: </servercmd>
   14: <data>
   15: </data>
   16: </reply>
   17: 
   18: # Client-side
   19: <client>
   20: <server>
   21: ftp
   22: </server>
   23:  <name>
   24: FTP NLST dir list with weird reply code, using PORT
   25:  </name>
   26:  <command>
   27: ftp://%HOSTIP:%FTPPORT/ -P - -l
   28: </command>
   29: </client>
   30: 
   31: # Verify data after the test has been "shot"
   32: <verify>
   33: <errorcode>
   34: 19
   35: </errorcode>
   36: # Strip all valid kinds of PORT and EPRT that curl can send
   37: <strip>
   38: ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
   39: ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
   40: </strip>
   41: <protocol>
   42: USER anonymous
   43: PASS ftp@example.com
   44: PWD
   45: PORT 127,0,0,1,243,212
   46: TYPE A
   47: NLST
   48: QUIT
   49: </protocol>
   50: </verify>
   51: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>