| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: File uploading problem
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Oct 2008 14:39:41 +0200 (CEST)
On Mon, 6 Oct 2008, Amit Nargund wrote:
> curl_formadd(&post, &last, CURLFORM_COPYNAME,
And here's the relevant quote from the fine manual:
CURLFORM_FILE
"filename" being the keyword. You didn't provide one.
Also, your "working example" showed three different parts while you only add
> curl_easy_setopt(CurlHandle, CURLOPT_POSTFIELDSIZE, size);
This isn't needed and doesn't even do anything when you use CURLOPT_HTTPPOST.
> curl_easy_cleanup(CurlHandle); //free curl session
This looks like bad copy and paste.
And for more details on exactly what libcurl sends/receives, use
-- / daniel.haxx.seReceived on 2008-10-06 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info