How can I do several request in one HttpURLConnection with Java?
URL url = new URL(\"http://my.com\");
HttpURLConnection connection = (HttpURLConnection)ur
Beyond the correct answer, maybe what you actually want is reuse of the underlying TCP connection, aka "persistent connections", which are indeed supported by JDK's HttpURLConnection. So you don't need to use other http libs for that reason; although there are other legitimate reason, possibly performance (but not necessarily, depends on use case, library).