Add tests for http put and https

There are missing tests for HTTP PUT and HTTPS.

- [x] test for HTTP PUT
- [x] test for HTTPS
- [x] if problems fix them
  - fixed occuring error when CONNECT requests come