cURL / Mailing Lists / curl-library / Single Mail


Re: Access denied error while get/put

From: Michael Wood <>
Date: Tue, 5 Jul 2011 15:22:28 +0200


On 5 July 2011 11:24, nithesh salian <> wrote:
> 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.
> 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 says it
> should be done. This is the default but the slowest behavior."

Set CURLOPT_VERBOSE to see what libcurl is actually doing, or use

Michael Wood <>
List admin:
Received on 2011-07-05