Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Seek problem with curl_formadd with CURLFORM_STREAM
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Patrick Monnerat via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 30 Jan 2024 01:11:45 +0100
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.
Date: Tue, 30 Jan 2024 01:11:45 +0100
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.htmlReceived on 2024-01-30