On 1/29/24 20:33, Jeff Mears via curl-library wrote:
I have code that’s attempting to use CURLFORM_STREAM with
curl_formadd, and it is getting a CURLE_SEND_FAIL_REWIND error from
the library.
As the formadd API is deprecated, this is not considered as a bug
anymore and won't be fixed. It is however one of the caveats that
motivated the design of the MIME API and I think the best way you fix
your program is by migrating it to the latter.
Please see
https://github.com/curl/curl/pull/9116#issuecomment-1178879923: the
CURLOPT_SEEKFUNCTION and CURLOPT_SEEKDATA options might help you in case
you only have one stream to rewind per request and sadly do not want to
migrate to MIME.
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html