outputs the request and response