Remote Logging for HTTP Request and Response

I got the code from this link