HTTPS example adapted from Catalin

This is the HTTPS example we've been discussing on the mailing list.  I hadn't submitted a pull request yet, because I thought there might be further discussion on the mailing list.  But since there hasn't been, I'm going to go ahead and call it a pull request.