cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP Pret Command

From: Kai Mayfarth <kai.mayfarth_at_hs-weingarten.de>
Date: Thu, 08 Feb 2007 22:30:20 +0100

Daniel Stenberg schrieb:
> On Thu, 8 Feb 2007, Kai Mayfarth wrote:
>
>> Thanks for the Tip, but it isnt working, without prefix its sende
>> before the cwd command, with + prefix itīs send after the cwd command
>> but not before the PASV command. Any other solution?
>
> (top-posting makes replies hard to read)
>
> Why is sending it before the PWD bad? But no there's no other solution
> that I can think of. curl offers three different "points in time"
> where you can add custom commands in the FTP command/response chain,
> and those have been enough in the past.
>
> To me, the whole PRET command looks like a kludge. Not to mention that
> drftpd is the only server implementation that uses it, and their site
> is now gone since they haven't paid for the domain name...
>
Its bad because the ftpd must know from which slave the file has to be
send. So i must be in the right directory und send pret retr file, then
the pasv command. And with the --quote it isnt possible to do it. Its
send before cwd, or after pasv command, and both are the wrong times. So
i think i cant use curl.
Received on 2007-02-08