Question: do a simple http request in java?
Answer: Create URL object from the GET/POST URL String.
Call openConnection() method on URL object that returns instance of HttpURLConnection.
Set the request method in HttpURLConnection instance, default value is GET.