cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Moving files on an FTP server via libcurl

From: Vipin hegde <vipinhegde_at_gmail.com>
Date: Thu, 28 Jun 2007 15:51:18 -0700

Hi Friedrich,
  Yeah, I verified that I'm in the right directory. Interesting thing is,
while I was verifying that, I noticed this in the verbose output generated
by Libcurl (i guess i just missed seeing it before):

* Curl_xxx_rcvs returned -1, block = TRUE

Could this have anything to do with the problem?

Regards,
Vipin

On 6/28/07, Friedrich Koester <friedrich28_at_gmx.de> wrote:
>
> Hi Vipin,
>
> what about the directory? Are you in the correct directory, i.e. did
> you CWD there before?
>
> Cheers
> Friedrich
>
> Am 29.06.2007 um 00:36 schrieb Vipin hegde:
>
> > I split the command in two, as Daniel pointed out. Still no luck.
> > I have the verbose flag turned on and I see no error message or
> > warning which might give a clue as to why the files are not being
> > moved over.
> > ======================================================================
> > ==================
> > $cobj = curl_init();
> > curl_setopt($cobj, CURLOPT_URL, $ftp_url);
> > curl_setopt($cobj, CURLOPT_RETURNTRANSFER,1);
> > curl_setopt($cobj, CURLOPT_VERBOSE, 1);
> > curl_setopt($cobj, CURLOPT_USERPWD, $username . ":" . $password);
> > curl_setopt($cobj, CURLOPT_FTP_USE_EPSV, 0);
> > curl_setopt($cobj, CURLOPT_FTP_USE_EPRT, 0);
> > curl_setopt($cobj, CURLOPT_FTP_SSL, CURLFTPSSL_ALL);
> > curl_setopt($cobj, CURLOPT_SSL_VERIFYPEER, 0);
> > curl_setopt($cobj, CURLOPT_SSL_VERIFYHOST, 0);
> > curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNFR $filename"));
> > curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNTO old_datafiles/
> > $filename"));
> >
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

-- 
Regards,
Vipin

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-29