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