cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Impossible to POST binary data with CURLOPT_POSTFIELDS

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Fri, 12 Oct 2007 11:36:10 +0200

 

> 0) Revert the code to do what it did before and require the buffer to
> be present durring the action
>
> 1) As (0) and then add a new api to make a copy of the post data
>
> ** The following options would change the API and application
compatability:
>
> 2) Change CURLOPT_POSTFIELDS to include a size parameter
>
> 3) Require CURLOPT_POSTFIELDSIZE to be called first

An other solution would be to revert CURLOPT_POSTFIELDS to the non-copy
version, and add a new option CURLOPT_COPYPOSTFIELDS.
This will restore binary compatibility with pre 7.17.0 applications and
allow the copy feature too...
Received on 2007-10-12