Annotation of embedaddon/curl/tests/data/test1349, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: FTP
! 5: RETR
! 6: </keywords>
! 7: </info>
! 8:
! 9: # Server-side
! 10: <reply>
! 11: <data nocheck="yes">
! 12: fooo
! 13: mooo
! 14: </data>
! 15: </reply>
! 16:
! 17: # Client-side
! 18: <client>
! 19: # this relies on the debug feature to allow us to set directory to store the
! 20: # -O output in, using the CURL_TESTDIR variable
! 21: <features>
! 22: debug
! 23: </features>
! 24: <server>
! 25: ftp
! 26: </server>
! 27: <name>
! 28: FTP download, file without C-D inside, using -O -D file
! 29: </name>
! 30: <setenv>
! 31: CURL_TESTDIR=%PWD/log
! 32: </setenv>
! 33: <command option="no-output,no-include">
! 34: ftp://%HOSTIP:%FTPPORT/path/file1349 -O -D log/heads1349
! 35: </command>
! 36: </client>
! 37:
! 38: # Verify data after the test has been "shot"
! 39: <verify>
! 40: <protocol>
! 41: USER anonymous
! 42: PASS ftp@example.com
! 43: PWD
! 44: CWD path
! 45: EPSV
! 46: TYPE I
! 47: SIZE file1349
! 48: RETR file1349
! 49: QUIT
! 50: </protocol>
! 51:
! 52: <file1 name="log/file1349">
! 53: fooo
! 54: mooo
! 55: </file1>
! 56:
! 57: # The final "221 bye bye baby" response to QUIT will not be recorded
! 58: # since that is not considered part of this particular transfer!
! 59: <file2 name="log/heads1349">
! 60: 220- _ _ ____ _
! 61: 220- ___| | | | _ \| |
! 62: 220- / __| | | | |_) | |
! 63: 220- | (__| |_| | _ {| |___
! 64: 220 \___|\___/|_| \_\_____|
! 65: 331 We are happy you popped in!
! 66: 230 Welcome you silly person
! 67: 257 "/" is current directory
! 68: 250 CWD command successful.
! 69: 229 Entering Passive Mode (stripped)
! 70: 200 I modify TYPE as you wanted
! 71: 213 10
! 72: 150 Binary data connection for 1349 () (10 bytes).
! 73: 226 File transfer complete
! 74: </file2>
! 75: <stripfile2>
! 76: s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
! 77: </stripfile2>
! 78:
! 79: <file3 name="log/stdout1349">
! 80: </file3>
! 81:
! 82: </verify>
! 83: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>