Fixes for testing

I was trying to do a testing based on a session but I've found a couple of problems related to "body" content and session cookie. I've modified the code to ensure the post body content is kept (copied to the new process) and the session cookie is copied to the following request.