12 # file1360 contents...
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
19 Content-Type: text/html
20 Content-Disposition: filename=name1360; charset=funny; option=strange
28 # this relies on the debug feature to allow us to set directory to store the
29 # -O output in, using the CURL_TESTDIR variable
37 FTP download, file with C-D inside, using -O -J -D stdout
42 <command option="no-output,no-include">
43 ftp://%HOSTIP:%FTPPORT/path/file1360 -O -J -D -
46 perl %SRCDIR/libtest/notexists.pl %PWD/log/name1360
50 # Verify data after the test has been "shot"
54 PASS ftp@example.com
\r
64 <file1 name="log/file1360">
66 Date: Thu, 09 Nov 2010 14:49:00 GMT
67 Server: test-server/fake
70 Content-Type: text/html
71 Content-Disposition: filename=name1360; charset=funny; option=strange
76 <file2 name="log/stdout1360">
78 220- ___| | | | _ \| |
\r
79 220- / __| | | | |_) | |
\r
80 220- | (__| |_| | _ <| |___
\r
81 220 \___|\___/|_| \_\_____|
\r
82 331 We are happy you popped in!
\r
83 230 Welcome you silly person
\r
84 257 "/" is current directory
\r
85 250 CWD command successful.
\r
86 229 Entering Passive Mode (stripped)
87 200 I modify TYPE as you wanted
\r
89 150 Binary data connection for 1360 () (214 bytes).
\r
90 226 File transfer complete
\r
92 curl: Saved to filename '%PWD/log/file1360'
95 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/