Modify response header/body extraction method

Avoid bug happening when there is more than 1 header which actually cause $body to be the second header. 
We now assume that response body is ever the last part of the response (and not the second part).