blob: 4a42c79d00ddd00167e66fe83100ca3b5f2fd900 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: post302
4Help: Do not switch to GET after following a 302
5Protocols: HTTP
6See-also: post301 post303 location
7Added: 7.19.1
8Category: http post
9Example: --post302 --location -d "data" $URL
10Multi: boolean
11---
12Tells curl to respect RFC 7231/6.4.3 and not convert POST requests into GET
13requests when following a 302 redirection. The non-RFC behavior is ubiquitous
14in web browsers, so curl does the conversion by default to maintain
15consistency. However, a server may require a POST to remain a POST after such
16a redirection. This option is meaningful only when using --location.