cURL / Mailing Lists / curl-library / Single Mail

curl-library

Access denied error while get/put

From: nithesh salian <nitheshsalian2006_at_gmail.com>
Date: Tue, 5 Jul 2011 14:54:15 +0530

Hi,

 While getting/putting file(s) from/to a pure-ftp server, I am getting a
error message stating CURLE_FTP_ACCESS_DENIED.

 I set CURLOPT_FTP_FILEMETHOD as suggested in one of posts to
CURLFTPMETHOD_MULTICWD
and everything started working fine.

 The description of CURLFTPMETHOD_MULTICWD(see below) states that it is the
default behaviour. I was not setting anything before. Did libcurl use some
other option instead of CURLFTPMETHOD_MULTICWD as a default option? Should
I explicitly use this option in my code to get rid of this error? Please let
me know.

 "*CURLFTPMETHOD_MULTICWD*

libcurl does a single CWD operation for each path part in the given URL. For
deep hierarchies this means many commands. This is how RFC
1738<http://www.ietf.org/rfc/rfc1738.txt>
 says it should be done. This is the default but the slowest behavior."

Regards,
Nithesh Gangadhar Salian
.

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