Preliminary wrapper for GET/POST requests.