cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [PATCH] Clean up documentation on -X and -d

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Sep 2015 23:35:36 +0200 (CEST)

On Tue, 1 Sep 2015, Alex Bligh wrote:

Sorry, but I don't think this patch helps to bring clarity so I will not merge
it. I don't think the -d section needs to speak of GET and I don't think the
-X section has to mention that -d sends a POST. curl can use several other
methods too and it seems weird to be to focus so much on these particular ones
there.

I think we should maintain that -d sends a POST, but that you can change the
method string in the request with -X.

-X is about _changing_ the method that curl would otherwise use. It is an
option for the special cases, not for the normal operations.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-01