curl -v -P "-" -o todelete.tmp --stderr curl-7.17.2-20071116_ftp.log ftp://user:passwd@server.domain//file * About to connect() to server.domain port 21 (#0) * Trying xxx.xxx.xxx.xxx... connected * Connected to server.domain (xxx.xxx.xxx.xxx) port 21 (#0) < 220 server.domain FTP SERVER T9552G07 (Version 3.w TANDEM 29JUL2005) ready. > USER user < 331 Password required for user. > PASS passwd < 230 User user logged in. OSS API enabled > PWD < 257 "/home/igr" is current directory. * Entry path is '/home/igr' > CWD log < 250 CWD command successful. * Telling server to connect to xxx.xxx.xxx.xxx:2826 > PORT xxx,xxx,xxx,xxx,11,10 < 200 PORT command successful. * Connect data stream actively > TYPE I < 200 Type set to I. > SIZE bx070221 < 500 'SIZE bx070221': command not understood. > RETR bx070221 < 150 Opening data connection for bx070221 (xxx.xxx.xxx.xxx,2826d) (23675234 bytes). * Connection accepted from server * Maxdownload = -1 * Getting file with size: 23675234 { [data not shown] * Remembering we are in dir "/home/igr/log/" < 226 Binary Transfer complete * Connection #0 to host server.domain left intact > QUIT < 221 Goodbye. * Closing connection #0