curl-rust icon indicating copy to clipboard operation
curl-rust copied to clipboard

Expose CURLOPT_POSTREDIR

Open konstin opened this issue 5 years ago • 2 comments

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.

konstin avatar Aug 24 '19 18:08 konstin

Sounds good to me to add! A PR would be most welcome for this!

alexcrichton avatar Aug 26 '19 15:08 alexcrichton

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?

kkalavantavanich avatar Jul 08 '23 06:07 kkalavantavanich