Re: curl follow location method

Daniel Stenberg via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On Tue, 11 Jul 2023, [email protected] 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.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.