New client to invoke REST endpoint using HttpURLConnection - simple GET and POST requests