Cleaning up the web request and response