cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: can't figure out why CWD is failing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Jan 2011 13:20:30 +0100 (CET)

On Mon, 24 Jan 2011, Vishakha Vaidya wrote:

>> CURLOPT_VERBOSE is always a good string place.

> It says RETR fails. Couldn't retrieve the file. I tried with
> CURLOPT_CUSTOMREQUEST "cwd \/abc" but result is the same.

I think I'm not understanding this. If you're not allowed to cwd to /abc, then
what is libcurl supposed to do?

The "common" problem with changing directories over FTP is when the client
isn't allowed to cwd to /abc but the server thinks it is ok to cwd to /abc/def
directly and that's one reason why the CURLOPT_FTP_FILEMETHOD option exists.

If you have a client that manages to do the operation you want, then figure
out what it does and then look into how to make libcurl do it like that.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-24