Only allow http and https for outgoing connections

Fix for http://blog.volema.com/curl-rce.html#.URTbi-hJQ7o