read request headers and body