curl / Mailing Lists / curl-users / 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: On QUERY and -X

From: Bastian Jesuiter via curl-users <curl-users_at_lists.haxx.se>
Date: Sun, 2 Mar 2025 11:44:18 +0100

I personally like the idea of adding a flag specifically for this new -L
behavior.

Or alternatively change the default -L behavior.

I think that this might become a new default, that any response might be
used to return a specific / custom METHOD to use in redirected / subsequent
requests, unrelated to the query method.

Like that a Get could redirect to a query method call, or as specified here
in the proposal, that query redirects can respond with a get method
redirect.

Or that a server might even be to implement custom methods, which the query
redirects to.

Since it's so specific to redirects, I'd probably change how -L works
instead of -X.

Bastian

On Sun, 2 Mar 2025, 11:18 Daniel Stenberg via curl-users, <
curl-users_at_lists.haxx.se> wrote:

> On Tue, 25 Feb 2025, Daniel Stenberg wrote:
>
> > This new functionality that opens up the opportunity to make curl do
> QUERY
> > better by using this new flag. But how?
>
> My plan is now to merge the libcurl part necessary for this functionality
> in
> this feature window, then write up a proposal for the curl tool to ideally
> get
> merged in the *next* pending release window.
>
> I have not yet figured out exactly which of the approaches I prefer...
>
> --
>
> / daniel.haxx.se || https://rock-solid.curl.dev
> --
> Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
> Etiquette: https://curl.se/mail/etiquette.html
>


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-03-02