log headers and body of the http request