cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cannot get it work with 'CURLFORM_FILECONTENT'

From: Ryan <g-5_at_163.com>
Date: Thu, 1 Aug 2013 13:33:00 +0800 (CST)

Thank you for kindly help, Daniel

I confirm it by using the workround of "CURLFORM_COPYNAME" and capture the data via wireshark. With the workround, the file conent goes in the POST body. So it should be caused by the bug fixed.
>On Tue, 30 Jul 2013, Ryan wrote:
>
>> curl_formadd(&post, &last, CURLFORM_PTRNAME, "pic", CURLFORM_FILECONTENT,
>> picture_file_name, CURLFORM_END);
>
>Amazing!
>
>curl_formadd was added to libcurl in on August 21st, 2001.
>
>4354 days later(!) I pushed commit 41fb6443ceeda which fixes the problem you
>mention above, exactly one week before you report it (again)...
>
>(It was first reported by Byrial Jensen in
>http://curl.haxx.se/mail/lib-2013-07/0258.html )
>
>
> / daniel.haxx.se
>------------------------------

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-01