fix a problem with large content-length specified bodies not being handled.
do cleanup through a new function, makes sure buffers and processes are cleaned properly
a title and some more examples
GPL