added support for 'chunked' requests + fixed bug where only parts of request would be fetched.