Utility to test and log GET and POST requests