cURL / Mailing Lists / curl-library / Single Mail

curl-library

AW: posting a file

From: Jürgen Ladstätter <info_at_innova-studios.com>
Date: Sat, 26 Jul 2008 13:30:29 +0200

hi daniel,

thanks for your help, it works now.

kind regards, juergen

-----Ursprüngliche Nachricht-----
Von: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] Im Auftrag von Daniel Stenberg
Gesendet: Freitag, 25. Juli 2008 22:53
An: libcurl development
Betreff: Re: posting a file

On Thu, 24 Jul 2008, Jürgen Ladstätter wrote:

> i?m new to curl and so it is sometimes a little bit confusing using
libcurl
> in my c++ program. I want to post a file to a php script to store it on a
> server. I used several methods on how to post them, but they always get
> POSTed ($_POST) and don?t occur in $_FILES.

Well, I suppose "post a file" means using multipart formpost and then you
want
curl_formadd() and family.

Like this example:

         http://curl.haxx.se/lxr/source/docs/examples/postit2.c

-- 
  / daniel.haxx.se
Received on 2008-07-26