curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. 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 Daniel himself.

Re: CURLOPT_FOLLOWLOCATION and request body

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 26 May 2025 10:54:28 +0200 (CEST)

On Mon, 26 May 2025, jeanchristophe.amiel_at_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.

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-05-26