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: curl follow location method
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 11 Jul 2023 21:25:01 +0200 (CEST)
On Tue, 11 Jul 2023, jeanchristophe.amiel_at_orange.com wrote:
> I just have a final question, mainly theorical: if there is no dedicated
> option for a method (I think specifically of DELETE), the only option to use
> such a method is with -X/--request. In that case, combining --request and
> --location, I won't be able "to test" a redirection with a GET method? The
> --request will force all subsequent request to use DELETE?
I'm not sure I understand completely, but yes -X makes this and subsequent
requests (after a redirect) use the specified method. This includes DELETE or
whatever other method you use.
Date: Tue, 11 Jul 2023 21:25:01 +0200 (CEST)
On Tue, 11 Jul 2023, jeanchristophe.amiel_at_orange.com wrote:
> I just have a final question, mainly theorical: if there is no dedicated
> option for a method (I think specifically of DELETE), the only option to use
> such a method is with -X/--request. In that case, combining --request and
> --location, I won't be able "to test" a redirection with a GET method? The
> --request will force all subsequent request to use DELETE?
I'm not sure I understand completely, but yes -X makes this and subsequent
requests (after a redirect) use the specified method. This includes DELETE or
whatever other method you use.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-07-11