From 342aa4797edfabba78755e798d23a5b6d288d50b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 16 Nov 2016 14:20:36 +0100 Subject: cmdline-docs: more conversion --- docs/cmdline-opts/post302.d | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/cmdline-opts/post302.d (limited to 'docs/cmdline-opts/post302.d') diff --git a/docs/cmdline-opts/post302.d b/docs/cmdline-opts/post302.d new file mode 100644 index 000000000..6ea5f09bb --- /dev/null +++ b/docs/cmdline-opts/post302.d @@ -0,0 +1,11 @@ +Long: post302 +Help: Do not switch to GET after following a 302 +Protocols: HTTP +See-also: post301 post303 location +Added: 7.19.1 +--- +Tells curl to respect RFC 7230/6.4.2 and not convert POST requests into GET +requests when following a 302 redirection. The non-RFC behaviour is ubiquitous +in web browsers, so curl does the conversion by default to maintain +consistency. However, a server may require a POST to remain a POST after such +a redirection. This option is meaningful only when using --location. -- cgit v1.2.3