Retrofit is an open-source java library that can be used as the web service client API. It can help you construct a web service access url, send the request to web service by numerous HTTP methods such as GET, POST, DELETE, etc. It can also send parameters such as url query string or HTML form …
This example shows you how to encapsulate HttpURLConnection and OkHttp in an HTTP util class that can make HTTP requests through HttpURLConnection or OkHttp reusable.
This article will tell you how to use java.net.HttpURLConnection class to send http request and get http server response in android application.