03
Jun
10

how to find the content-length of a URL using URLConnection/HttpUrlConnection



Here’s how:


URLConnection a = new URL("http://insertWebsiteAddressHere").openConnection();
System.out.println(a.getContentLength());


0 Responses to “how to find the content-length of a URL using URLConnection/HttpUrlConnection”



  1. Leave a Comment

Leave a comment


Blog Stats

  • 281,783 hits