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