Try HTTPS if HTTP fails
Try adding "www." if host fails
Connect to urlhost, not url
Merge pull request #3 from nwtn/https_www

On error, try https and/or prepending "www." to url; connect to urlhost, not url