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

curl-and-php

Re: delete file from ftp with quote

From: Gaetano Favoino <gaetano.favoino_at_gmail.com>
Date: Mon, 28 Jul 2008 10:07:28 +0200

Hi Daniel,
I've already tried with various commands but quote commands passed by
array are skipped...
Can anyone provide a simple working example to delete a file from ftp
server with curl?

Best regards,

On Fri, Jul 25, 2008 at 10:56 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 25 Jul 2008, Gaetano Favoino wrote:
>
>> $comandi_array[] = "\"-dele FNVAC20080716140014.CHK\"";
>
> "-dele" is not a command that you can send to the server and assume it'll
> understand. The system with '-' prefix is what the command line tool uses,
> libcurl itself has different setopt options for actions to be done before or
> after the transfer. See the libcurl docs for details.
>
> --
>
> / daniel.haxx.se
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

-- 
Gaetano Favoino
gaetano.favoino_at_gmail.com
PGP-FP E97A 062D 359A 5B09 FFE9 4842 EDEF EEF6 4AA3 CAEC
:wq
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-07-28