diff options
author | Andrei Cipu <acipu@ixiacom.com> | 2012-03-30 10:40:04 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-04-05 23:29:21 +0200 |
commit | 0b516b7162dc387ed80b0f24476b950ab2e18cb7 (patch) | |
tree | 8dc2ee9ac9e1e21d47122d7ae792c9efb0c25e5f /lib/url.c | |
parent | a0b3535735ab29d8064654097058d230882eddc5 (diff) | |
download | curl-0b516b7162dc387ed80b0f24476b950ab2e18cb7.tar.gz |
CURLOPT_POSTREDIR: also allow 303 to do POST on the redirected URL
As it turns out, some people do want that after all.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1111,12 +1111,12 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, * CURL_REDIR_GET_ALL - POST is changed to GET after 301 and 302 * CURL_REDIR_POST_301 - POST is kept as POST after 301 * CURL_REDIR_POST_302 - POST is kept as POST after 302 - * CURL_REDIR_POST_ALL - POST is kept as POST after 301 and 302 + * CURL_REDIR_POST_303 - POST is kept as POST after 303 + * CURL_REDIR_POST_ALL - POST is kept as POST after 301, 302 and 303 * other - POST is kept as POST after 301 and 302 */ long postRedir = va_arg(param, long); - data->set.post301 = (postRedir & CURL_REDIR_POST_301)?TRUE:FALSE; - data->set.post302 = (postRedir & CURL_REDIR_POST_302)?TRUE:FALSE; + data->set.keep_post = postRedir & CURL_REDIR_POST_ALL; } break; |