Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Overview

This crate provides the insecure_https_connector() function which can be used to generate a hyper::net::HttpsConnector with the underlying OpenSSL context configured to:

  • disable SSL certificate verification
  • allow SSLv2 and SSLv3

Example:

externcrate hyper_insecure_https_connector;externcrate hyper;use hyper_insecure_https_connector::insecure_https_connector;use std::io::Read;fnmain(){let client = hyper::Client::with_connector(insecure_https_connector());letmut res = client.get("http://httpbin.org/get").send().unwrap();letmut content = String::new();
res.read_to_string(&mut content).unwrap();println!("Answer:\n{}", content);}

Note: it only works with hyper 0.9.*

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Insecure HTTPS connector for Hyper

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages