top of page

HttpURLConnection Sample Usage (java.net.HttpURLConnection)

  • Writer: Jonathan
    Jonathan
  • May 31, 2019
  • 1 min read

What I Learned Today! (31/05/2019)


HttpURLConnection class is one of the popular among the Java developers. Its includes HTTP specific features. If you would like to use secured HTTPS protocol, you can use HttpsURLConnection class instead.


Here in example, I will send request to get the JSON data from one of the resources of JSONPlaceholder (Fake Online REST API for Testing and Prototyping).


As result, you will be able to see the JSON response as String on console.


Reference :


コメント


Single post: Blog_Single_Post_Widget
bottom of page