curl-library
RE: Impossible to POST binary data with CURLOPT_POSTFIELDS
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Oct 2007 13:54:34 +0200 (CEST)
Date: Fri, 12 Oct 2007 13:54:34 +0200 (CEST)
On Fri, 12 Oct 2007, Patrick Monnerat wrote:
> 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...
Given the current facts and feedback, I guess this is the best idea so far. It
will of course make CURLOPT_POSTFIELDS act in a non-obvious way compared to
all the other setopt() arguments (thus it may lead to some surprising bugs for
users) and CURLOPT_COPYPOSTFIELDS would need to have the size set before it
can copy the fields (if binary contents are desired).
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-10-12