Java Language Tutorial:

Java Language HttpURLConnection

Remarks

  • Using HttpUrlConnection on Android requires that you add the Internet permission to your app (in the AndroidManifest.xml).

  • There are also other Java HTTP clients and libraries, such as Square's OkHttp, which are easier to use, and may offer better performance or more features.

Java Language HttpURLConnection Examples:

Related Java Language Tutorial Topics:

Other Tutorial Topics:

This modified content is an extract of the original Stack Overflow Documentation released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow. This topic was created and modified by the Stack Ovedrflow Contributor.