Support http as well as https.
v2