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

curl-and-php

Re: Moving files on an FTP server via libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Jun 2007 09:06:59 +0200 (CEST)

On Thu, 28 Jun 2007, Vipin hegde wrote:

> 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.

[...]

> curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNFR $filename"));
> curl_setopt($cobj, CUROPT_POSTQUOTE, array("RNTO old_datafiles/$filename"));

No, you set the same option twice which won't work.

With the verbose option set, you should see a complete "protocol trace" and in
there you will of course see the "quote" commands you send to the server.

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