Using secure=True to avoid HTTP 302 errors

This fixes #3
Merge pull request #5 from chees/patch-1

Using secure=True to avoid HTTP 302 errors