Skip to content

Commit 51a0865

Browse files
committed
Add option flags for CURLOPT_POSTREDIR (#286)
Change-Id: I3d4d71c9c4de8df87fed8903db66417c83132a7b
1 parent b50c5d3 commit 51a0865

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

curl-sys/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,12 @@ pub const CURL_FORMADD_INCOMPLETE: CURLFORMcode = 5;
715715
pub const CURL_FORMADD_ILLEGAL_ARRAY: CURLFORMcode = 6;
716716
pub const CURL_FORMADD_DISABLED: CURLFORMcode = 7;
717717

718+
pub const CURL_REDIR_POST_301: c_ulong = 1;
719+
pub const CURL_REDIR_POST_302: c_ulong = 2;
720+
pub const CURL_REDIR_POST_303: c_ulong = 4;
721+
pub const CURL_REDIR_POST_ALL: c_ulong =
722+
CURL_REDIR_POST_301 | CURL_REDIR_POST_302 | CURL_REDIR_POST_303;
723+
718724
#[repr(C)]
719725
pub struct curl_forms {
720726
pub option: CURLformoption,

0 commit comments

Comments
 (0)