Flexible http(s) support.
Merge pull request #3 from bimech/flexible-http

Flexible http(s) support.