curl-library
Re: Maxdownload problem & SSH question
Date: Mon, 26 Mar 2007 14:31:29 +0200 (CEST)
On Mon, 26 Mar 2007, thyros_at_op.pl wrote:
> When I connect to ftp I get 'Maxdownload = -1' message.
Hm, yeah that message is kind of silly and we should rather make that a debug
message instead of showing it to the world like this.
> I suppose this is some kind of file size limit but I can't find a way to
> change it (or is it just so simply that I can't see it).
-1 means that libcurl doesn't use any maximum limit anyway.
> I also get 'FTP: couldn't retrieve (RETR failed) the specified file' message
> but since my debugger refused to cooperate I can't check if it's connected
> with receiving files from ftp or just file list (I'm still working on it).
Just enable CURLOPT_VERBOSE and see what your server responds.
> I'd like to use SSH to connect with FTP.
libcurl doesn't support FTP over SSH. I'd suggest you use one of FTP-SSL, SCP
or SFTP instead.
> are the CURLOPT_SSH_* (including CURLOPT_SSLKEYPASSWD) only settings that I
> need to set?
The *SSH* ones are for SCP and SFTP, and the *SSL* ones are interesting for
FTP-SSL.
> And what next? Can I connect to the server as when I connect without SSH?
> Can I still use 21 port or maybe I have use 22?
I can't really tell, since I'm not sure which of the supported protocols
you're talking about here. I assume you speak about SFTP and then it uses port
22 by default, but you can of course use whatever port you like.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-03-26