Parse headers and body from request