Added getRequest and postRequests for JSON, urlencodedstrings and main
method