Rewrite of HttpClient

* changed POST, GET and HEAD to generic
* fixed bug where converted images were corrupted