curl-library
Re: posting a file
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Jul 2008 22:52:54 +0200 (CEST)
Date: Fri, 25 Jul 2008 22:52:54 +0200 (CEST)
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.seReceived on 2008-07-25