curl / Mailing Lists / curl-users / Single Mail
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: Follow a PATCH/DELETE redirect response with GET method

From: Dan Fandrich via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 18 Jan 2023 23:06:38 -0800

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
Received on 2023-01-19