HTTPS support (fix #16).