Simple wrapper for HTTP GET and POST