changed set_http to verify if the url start with http:// or https://