be more specific in error messages
- fix http client for case of unspecified input length
- add proxy support