- added https support
- fixed a bug: http header was not properly passed to server