Support http and https