curl-rust
curl-rust copied to clipboard
Expose CURLOPT_POSTREDIR
The CURLOPT_POSTREDIR
option is e.g. required when the site is redirecting from not-slash-terminated to slash-terminated urls. Currently, the safe wrapper does not have a way to set CURLOPT_POSTREDIR
, and the curl-sys crate doesn't have constants for CURL_REDIR_POST_301
, CURL_REDIR_POST_302
, CURL_REDIR_POST_303
and CURL_REDIR_POST_ALL
, which are defined here.
Sounds good to me to add! A PR would be most welcome for this!
Hey I think this is already added by @sagebind in https://github.com/alexcrichton/curl-rust/commit/386e2c4429ec93803c27fe8eaa19c2b95c8bbfe9 about five months ago. Can this change be released so that it'll be available to everyone?