Support https endpoint

Posting to urls which start with https:// failed with an error. Let's support https.