File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test539
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: </keywords>
    6: </info>
    7: 
    8: #
    9: # Server-side
   10: <reply>
   11: <data>
   12: file contents
   13: </data>
   14: 
   15: <datacheck>
   16: file contents
   17: </datacheck>
   18: <datacheck1 mode="text">
   19: total 20
   20: drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
   21: drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
   22: drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
   23: -r--r--r--   1 0        1             35 Jul 16  1996 README
   24: lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
   25: dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
   26: drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
   27: dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
   28: drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
   29: dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
   30: </datacheck1>
   31: </reply>
   32: 
   33: # Client-side
   34: <client>
   35: <server>
   36: ftp
   37: </server>
   38: # tool is what to use instead of 'curl'
   39: <tool>
   40: lib539
   41: </tool>
   42: 
   43:  <name>
   44: Two FTP fetches using different CURLOPT_FTP_FILEMETHOD
   45:  </name>
   46:  <command>
   47: ftp://%HOSTIP:%FTPPORT/path/to/the/file/539
   48: </command>
   49: </client>
   50: 
   51: #
   52: # Verify data after the test has been "shot"
   53: <verify>
   54: <protocol>
   55: USER anonymous
   56: PASS ftp@example.com
   57: PWD
   58: CWD path/to/the/file
   59: EPSV
   60: TYPE I
   61: SIZE 539
   62: RETR 539
   63: SYST
   64: CWD /
   65: EPSV
   66: TYPE A
   67: LIST path/to/the/file/539.
   68: QUIT
   69: </protocol>
   70: </verify>
   71: </testcase>

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