aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/post302.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-16 14:20:36 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-16 15:15:57 +0100
commit342aa4797edfabba78755e798d23a5b6d288d50b (patch)
treec9607e88e05cef2f5084f6428151c5de52ee2fc4 /docs/cmdline-opts/post302.d
parentc3c1e9618513d245861c35ec0c563ab71ce892bb (diff)
cmdline-docs: more conversion
Diffstat (limited to 'docs/cmdline-opts/post302.d')
-rw-r--r--docs/cmdline-opts/post302.d11
1 files changed, 11 insertions, 0 deletions
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.