Re: Follow a PATCH/DELETE redirect response with GET method

Dan Fandrich via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <Y8jr/[email protected]>
On Wed, Jan 18, 2023 at 09:59:41PM +0000, Matthew Radford via curl-users wrote:
> Is it possible for curl to make a PATCH/DELETE HTTP request and follow a 302/303 redirect response Location using GET? If not, would new command line option(s) to imply/coerce the method be acceptable?

The only way to get a PATH/DELETE command is to use -X and that overrides the
method for for all requests, including on redirects. I'm pretty sure you're
stuck with disabling automatic redirect handling and performing redirects
yourself.

Dan
-- 
Unsubscribe: https://lists.haxx.se/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.