Https request self signed certificate

How to make https request self signed certificate?
if possible json response will be good.

The only way I found to make https request is with rust-curl
let mut easy = Easy::new();
easy.ssl_verify_host(false);
easy.ssl_verify_peer(false);