summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrei Cipu <acipu@ixiacom.com>2012-03-30 10:40:04 +0300
committerDaniel Stenberg <daniel@haxx.se>2012-04-05 23:29:21 +0200
commit0b516b7162dc387ed80b0f24476b950ab2e18cb7 (patch)
tree8dc2ee9ac9e1e21d47122d7ae792c9efb0c25e5f /include
parenta0b3535735ab29d8064654097058d230882eddc5 (diff)
downloadcurl-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 'include')
-rw-r--r--include/curl/curl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index f2501cd2b..f3166d952 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1624,13 +1624,16 @@ enum CURL_TLSAUTH {
};
/* symbols to use with CURLOPT_POSTREDIR.
- CURL_REDIR_POST_301 and CURL_REDIR_POST_302 can be bitwise ORed so that
- CURL_REDIR_POST_301 | CURL_REDIR_POST_302 == CURL_REDIR_POST_ALL */
+ CURL_REDIR_POST_301, CURL_REDIR_POST_302 and CURL_REDIR_POST_303
+ can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
+ | CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
#define CURL_REDIR_GET_ALL 0
#define CURL_REDIR_POST_301 1
#define CURL_REDIR_POST_302 2
-#define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302)
+#define CURL_REDIR_POST_303 4
+#define CURL_REDIR_POST_ALL \
+ (CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
typedef enum {
CURL_TIMECOND_NONE,