1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

CURLOPT_POSTREDIR.3: update RFC number and section

This commit is contained in:
Daniel Stenberg 2015-09-03 17:33:16 +02:00
parent 8a0ff1e529
commit e1a4bab86a

View File

@ -5,7 +5,7 @@
.\" * | (__| |_| | _ <| |___ .\" * | (__| |_| | _ <| |___
.\" * \___|\___/|_| \_\_____| .\" * \___|\___/|_| \_\_____|
.\" * .\" *
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" * .\" *
.\" * This software is licensed as described in the file COPYING, which .\" * This software is licensed as described in the file COPYING, which
.\" * you should have received as part of this distribution. The terms .\" * you should have received as part of this distribution. The terms
@ -32,13 +32,13 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_POSTREDIR,
.SH DESCRIPTION .SH DESCRIPTION
Pass a bitmask to control how libcurl acts on redirects after POSTs that get a Pass a bitmask to control how libcurl acts on redirects after POSTs that get a
301, 302 or 303 response back. A parameter with bit 0 set (value 301, 302 or 303 response back. A parameter with bit 0 set (value
\fBCURL_REDIR_POST_301\fP) tells the library to respect RFC2616/10.3.2 and not \fBCURL_REDIR_POST_301\fP) tells the library to respect RFC 7231 (section
convert POST requests into GET requests when following a 301 redirection. 6.4.2 to 6.4.4) and not convert POST requests into GET requests when following
Setting bit 1 (value \fBCURL_REDIR_POST_302\fP) makes libcurl maintain the a 301 redirection. Setting bit 1 (value \fBCURL_REDIR_POST_302\fP) makes
request method after a 302 redirect whilst setting bit 2 (value libcurl maintain the request method after a 302 redirect whilst setting bit 2
\fBCURL_REDIR_POST_303\fP) makes libcurl maintain the request method after a (value \fBCURL_REDIR_POST_303\fP) makes libcurl maintain the request method
303 redirect. The value \fBCURL_REDIR_POST_ALL\fP is a convenience define that after a 303 redirect. The value \fBCURL_REDIR_POST_ALL\fP is a convenience
sets all three bits. define that sets all three bits.
The non-RFC behaviour is ubiquitous in web browsers, so the library does the The non-RFC behaviour is ubiquitous in web browsers, so the library does the
conversion by default to maintain consistency. However, a server may require a conversion by default to maintain consistency. However, a server may require a