cURL / Mailing Lists / curl-library / Single Mail

curl-library

Impossible to POST binary data with CURLOPT_POSTFIELDS

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Mon, 15 Oct 2007 20:44:06 +0200

Fixed in CVS:
_ CURLOPT_POSTFIELDS is now back to static (non-copy)
_ CURLOPT_COPYPOSTFIELDS option added to support copy mode: if
CURLOPT_POSTFIELDSIZE is needed, it must be used prior to
CURLOPT_COPYPOSTFIELDS and not altered after, unless another
CURLOPT_POSTFIELDS/CURLOPT_COPYPOSTFIELDS overwrites the former.
_ CURLOPT_POSTFIELDSIZE_LARGE may be used instead of
CURLOPT_POSTFIELDSIZE for CURLOPT_COPYPOSTFIELDS providing the given
size fits in a size_t.
Received on 2007-10-15