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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 26 May 2025 10:03:53 +0200 (CEST)
On Mon, 26 May 2025, Jicea via curl-library wrote:
> I'm trying to get information on how libcurl behaves with
> CURLOPT_FOLLOWLOCATION and request body. Methods chosen for redirection are
> heavily documented, but I want to know how the request body is affected
> during redirection: is the initial body transmitted "as it", does libcurl
> send an empty body in the following request etc...
Fair question with I think a fairly simple answer. I made it as a PR:
https://github.com/curl/curl/pull/17454
"When libcurl switches method to GET, it then uses that method without
sending any request body."
Date: Mon, 26 May 2025 10:03:53 +0200 (CEST)
On Mon, 26 May 2025, Jicea via curl-library wrote:
> I'm trying to get information on how libcurl behaves with
> CURLOPT_FOLLOWLOCATION and request body. Methods chosen for redirection are
> heavily documented, but I want to know how the request body is affected
> during redirection: is the initial body transmitted "as it", does libcurl
> send an empty body in the following request etc...
Fair question with I think a fairly simple answer. I made it as a PR:
https://github.com/curl/curl/pull/17454
"When libcurl switches method to GET, it then uses that method without
sending any request body."
-- / daniel.haxx.se || https://rock-solid.curl.dev -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-05-26