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

curl-and-php

Re: TFTP PUT in PHP

From: Mino Bernardi <giacomino_at_gmail.com>
Date: Fri, 26 Oct 2007 23:00:54 +0100

Thanks for the advice, but actually the two snippets *are* exactly the
same, except I was using:
curl_setopt($ch, CURLOPT_UPLOAD, 1);
and there's:
curl_setopt($c, "CURLOPT_PUT", "TRUE");

I'll try with that and see.
Sadly there's no documentation at all about tftp...

bye,

On 10/26/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 26 Oct 2007, Mino Bernardi wrote:
>
> > I've looked for documentation, googled and scanned the source code in
> > lib/tftp.c to understand which option variables I should set in order to
> > specify source and destination filenames...
>
> I'm not the PHP/CURL expert, but your snippet looked totally wrong. I would
> suggest you get a FTP upload example and just prepend a T to the protocol part
> of the URL.
>
> Like this example: http://curl.haxx.se/libcurl/php/examples/ftpupload.html
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

-- 
Giacomo "mino" Bernardi
--------------------------------------
mail & msn: mino_at_ngi.it | www.minux.it
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-10-27