Use request library to support HTTPS and simplify code
Merge pull request #1 from radiodan/support-https

Use request library to support HTTPS and simplify code