Re: using ftp and easy libcurl
Date: Wed, 2 Apr 2008 23:24:04 +0300
On Sun, Mar 30, 2008 at 2:33 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 28 Mar 2008, Alexandru Iancu wrote:
> > I would like to know if there is any switch/flag available that tells
> > libcurl to issue just a subset of FTP commands(let's say only commands
> > defined by rfc959, or rfc2228, etc)?
> No, but libcurl should still function fine even on servers that don't
> any of the newer commands.
yes, libcurl works just fine.
> > There are CURLOPT_FTP_USE_EPSV and CURLOPT_FTP_USE_EPRT but it's not
> > I'm testing a rfc959 ftp server(www.myserverproject.net) with
> > and tests are failing because of commands not implemented.
> The server should simply return failure on commands it doesn't understand.
> Doesn't it?
Yes, the server responds as it should with a 5xx failure reply.
Let's take for example SIZE cmd(not implemented by the server) ...
... it seems that curl-loader(this uses libcurl) decides the server behaves
inappropriate to a RETR request because of SIZE cmd reply 502 issued in
between :( .
I searched a bit curl mailing list and I found this link:
Is is possible to disable SIZE cmd?
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-02