Added GET/POST request functionality.