let client = reqwest::blocking::Client::new();
let res = my_res!(client.post("https://removed")
.form(¶ms)
.body("the exact body that is sent")
.danger_accept_invalid_certs(true)
.send(), {
return Err(String::from("failed send"));
});
is producing compiler error: no method named danger_accept_invalid_certs
found for struct reqwest::blocking::RequestBuilder
in the current scope
The documentation states "Available on crate features default-tls
or native-tls
or rustls-tls
only."
and thus my cargo.toml attempt is currently:
[dependencies]
native-tls = { version = "0.2.2", optional = true }
reqwest = { version = "0.11.11", features = ["native-tls-crate", "default-tls", "native-tls", "blocking"] }
but I cannot seem to find this method!