On Mon, May 26, 2025 at 10:54 AM Daniel Stenberg via curl-library
<curl-library@lists.haxx.se> wrote:
>
> On Mon, 26 May 2025, jeanchristophe.am...@orange.com wrote:
>
> > Thanks for the quick reply and the PR Daniel. Just to be crystal clear: does
> > it mean that the new request retains the request body when there is no
> > method change (for instance a POST with 308, or a redirection on a PUT
> > request)?
>
> Yes. I extended the PR to say:
>
>   When libcurl switches method to GET, it then uses that method without 
> sending
>   any request body. If it does not change the method, it sends the subsequent
>   request the same way as the previous one; including the request body if one
>   was provided.

Perhaps also worth explaining that libcurl will then error if the body
was given via CURLOPT_READFUNCTION because it can only be consumed
once?
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to