cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLFORM_STREAM forces file upload

From: Sascha Swiercy <Galadrim_at_gmx.de>
Date: Mon, 13 Jun 2011 13:19:41 +0200

Hi,

I'd like to use the CURLFORM_STREAM option in curl_formadd for adding normal parts, but it seems that using CURLFORM_STREAM will always make it a file upload. The documentation for curl_formadd states, that when using CURLFORM_STREAM, also CURLFORM_FILENAME must be set to let the part become a file upload. But no matter whether I set the filename option or not, the part is always treated as a file upload. If I omit the filename, it seems to read from undefined memory which results in a random character sequence as filename. I'm using libcurl version 7.21.6.

What can I do?

Thanks,

Sascha

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-13