cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Access denied error while get/put

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

Hi

On 5 July 2011 11:24, nithesh salian <nitheshsalian2006_at_gmail.com> 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.
>  "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 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
CURLOPT_DEBUGFUNCTION for more details.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-05