curl should only use http and https protocols.