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

In a test I ran on the first 2000 sites, these modifications reduced generated errors from 151 with the original script to 80.