20 # this relies on the debug feature to allow us to set directory to store the
21 # -O output in, using the CURL_TESTDIR variable
29 FTP download, file without C-D inside, using -O -J -D stdout
34 <command option="no-output,no-include">
35 ftp://%HOSTIP:%FTPPORT/path/file1352 -O -J -D -
39 # Verify data after the test has been "shot"
43 PASS ftp@example.com
\r
53 <file1 name="log/file1352">
58 <file2 name="log/stdout1352">
60 220- ___| | | | _ \| |
\r
61 220- / __| | | | |_) | |
\r
62 220- | (__| |_| | _ <| |___
\r
63 220 \___|\___/|_| \_\_____|
\r
64 331 We are happy you popped in!
\r
65 230 Welcome you silly person
\r
66 257 "/" is current directory
\r
67 250 CWD command successful.
\r
68 229 Entering Passive Mode (stripped)
69 200 I modify TYPE as you wanted
\r
71 150 Binary data connection for 1352 () (10 bytes).
\r
72 226 File transfer complete
\r
74 curl: Saved to filename '%PWD/log/file1352'
77 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/