blob: caf0d87f18008a381840f7ba994eabc47d2a1ce6 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: post302
2Help: Do not switch to GET after following a 302
3Protocols: HTTP
4See-also: post301 post303 location
5Added: 7.19.1
6---
7Tells curl to respect RFC 7231/6.4.3 and not convert POST requests into GET
8requests when following a 302 redirection. The non-RFC behaviour is ubiquitous
9in web browsers, so curl does the conversion by default to maintain
10consistency. However, a server may require a POST to remain a POST after such
11a redirection. This option is meaningful only when using --location.