-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for --proxy-cacert or --proxy-insecure #160
Comments
squid.conf
extern crate curl;
use std::io::{stdout, Write};
use curl::easy::Easy;
fn main() {
let mut easy = Easy::new();
easy.proxy("https://squid.domain.com").unwrap();
easy.proxy_port(443).unwrap();
easy.proxy_username("user").unwrap();
easy.proxy_password("pass").unwrap();
easy.url("https://httpbin.org/ip").unwrap();
easy.write_function(|data| {
Ok(stdout().write(data).unwrap())
}).unwrap();
easy.perform().unwrap();
println!("{}", easy.response_code().unwrap());
} Error
|
I'd definitely love to have support for these! This would probably just involve binding a constant or two and then adding the appropriate functions to access it. Would you be interested in sending a PR for this functionality? I could certainly help out if needed! |
I am try to add some changes to curl-rust.
example.toml
Error: |
You may want to try running |
This completes the bindings for proxy SSL options and fixes #160.
* Add proxy_cacert support This completes the bindings for proxy SSL options and fixes #160. * Formatting * Add CURLOPT_PROXY_CAPATH debut version
Currently it's impossible to use this unix curl example:
curl -x https://squid.domain.com:443 --proxy-user user:pass https://ifconfig.co --proxy-cacert bundle.crt
Or maybe i can use sщme available functions ?
The text was updated successfully, but these errors were encountered: