allow testing against an HTTPS server. fixes #3