File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1389
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: RETR
    6: -J
    7: </keywords>
    8: </info>
    9: 
   10: # Server-side
   11: <reply>
   12: # file1389 contents...
   13: <data nocheck="yes">
   14: HTTP/1.1 200 OK
   15: Date: Thu, 09 Nov 2010 14:49:00 GMT
   16: Server: test-server/fake
   17: Content-Length: 6
   18: Connection: close
   19: Content-Type: text/html
   20: Content-Disposition: filename=name1389; charset=funny; option=strange
   21: 
   22: MOOOO
   23: </data>
   24: </reply>
   25: 
   26: # Client-side
   27: <client>
   28: <server>
   29: ftp
   30: </server>
   31: <name>
   32: FTP DL, file with C-D inside, using -o fname -J -D file
   33: </name>
   34: <command option="no-output,no-include">
   35: ftp://%HOSTIP:%FTPPORT/path/file1389 -o log/download1389 -J -D log/heads1389
   36: </command>
   37: <postcheck>
   38: perl %SRCDIR/libtest/notexists.pl log/file1389 log/name1389
   39: </postcheck>
   40: </client>
   41: 
   42: # Verify data after the test has been "shot"
   43: <verify>
   44: <protocol>
   45: USER anonymous
   46: PASS ftp@example.com
   47: PWD
   48: CWD path
   49: EPSV
   50: TYPE I
   51: SIZE file1389
   52: RETR file1389
   53: QUIT
   54: </protocol>
   55: 
   56: <file1 name="log/download1389">
   57: HTTP/1.1 200 OK
   58: Date: Thu, 09 Nov 2010 14:49:00 GMT
   59: Server: test-server/fake
   60: Content-Length: 6
   61: Connection: close
   62: Content-Type: text/html
   63: Content-Disposition: filename=name1389; charset=funny; option=strange
   64: 
   65: MOOOO
   66: </file1>
   67: 
   68: <file2 name="log/heads1389">
   69: 220-        _   _ ____  _     
   70: 220-    ___| | | |  _ \| |    
   71: 220-   / __| | | | |_) | |    
   72: 220-  | (__| |_| |  _ {| |___ 
   73: 220    \___|\___/|_| \_\_____|
   74: 331 We are happy you popped in!
   75: 230 Welcome you silly person
   76: 257 "/" is current directory
   77: 250 CWD command successful.
   78: 229 Entering Passive Mode (stripped)
   79: 200 I modify TYPE as you wanted
   80: 213 222
   81: 150 Binary data connection for 1389 () (222 bytes).
   82: 226 File transfer complete
   83: </file2>
   84: <stripfile2>
   85: s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
   86: </stripfile2>
   87: 
   88: <file3 name="log/stdout1389">
   89: </file3>
   90: 
   91: </verify>
   92: </testcase>

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