Re: Why curl does CWD (was Re: Problem with subsequent persistantcalls)
Date: Fri, 7 Dec 2001 15:04:10 +0100 (MET)
On Fri, 7 Dec 2001, Dimitris Sarris wrote:
> I got it wrong. My goal is to perform a CWD command and then retrieve the
> listing of the directory. That's why, I performed a CWD command with the
> CURLOPT_QUOTE and then performed the connection. With your explanation,
> my implementation is not valid.
> How can I perform the directory listing of a directory except for the
This is already perfectly well supported by libcurl! Just use a URL with a
different directory than /. Try
> Why did you implement it like this?
Can you explain a better way to do it?
> I suppose that it should be more suitable to first perform the CWD to
> home, then the quoted commands and last the transfer.
I don't think so. Because then if you do a CWD in the quoted commands, the
transfer is destined to fail. Now, you can CWD and do whatever you want, and
then curl will just jump to the correct directory and do the transfer.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-12-07