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 23:55:48 +0100

Robert A. Seace schrieb:
> In the profound words of Kai Mayfarth:
>
>> 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.
>>
>
> Just throwing out a random suggestion: Couldn't you use multiple
> "-Q" args (prefixless), and effectively do your own "CWD" prior to your
> needed "PRET"? Curl will then do its own "CWD after that, so I don't
> know if that'll mess things up for you or not..
Big thanks, good Idea, it works with ftp-method nocwd. But maybe
tomorrow i will have a look in the sources to add the pret command, look
like a only have to add a Curlnbftpsendf in the ftp.c at the right
place. But for now i have a solution.
Received on 2007-02-08