11 # file1359 contents...
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
18 Content-Type: text/html
19 Content-Disposition: filename=name1359; charset=funny; option=strange
27 # this relies on the debug feature to allow us to set directory to store the
28 # -O output in, using the CURL_TESTDIR variable
36 FTP download file with C-D inside, using -O -J -D file
41 <command option="no-output,no-include">
42 ftp://%HOSTIP:%FTPPORT/path/file1359 -O -J -D log/heads1359
46 # Verify data after the test has been "shot"
50 PASS ftp@example.com
\r
60 <file1 name="log/file1359">
62 Date: Thu, 09 Nov 2010 14:49:00 GMT
63 Server: test-server/fake
66 Content-Type: text/html
67 Content-Disposition: filename=name1359; charset=funny; option=strange
72 <file2 name="log/heads1359">
74 220- ___| | | | _ \| |
\r
75 220- / __| | | | |_) | |
\r
76 220- | (__| |_| | _ <| |___
\r
77 220 \___|\___/|_| \_\_____|
\r
78 331 We are happy you popped in!
\r
79 230 Welcome you silly person
\r
80 257 "/" is current directory
\r
81 250 CWD command successful.
\r
82 229 Entering Passive Mode (stripped)
83 200 I modify TYPE as you wanted
\r
85 150 Binary data connection for 1359 () (214 bytes).
\r
86 226 File transfer complete
\r
89 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
92 <file3 name="log/stdout1359">
93 curl: Saved to filename '%PWD/log/file1359'
96 <file4 name="log/name1359">