Home > Code > java URLConnection and timeout

java URLConnection and timeout

Throw this into your bag of goodies:

If you find yourself needing to make connections to other web servers from Java you’ll quickly run into problems. I found this nice package that provides a lot of functionality that is lacking in java URLConnection. The nicest things are the ability to read all response codes and set a timeout for the connection.

http://www.innovation.ch/java/HTTPClient/

http://www.innovation.ch/java/HTTPClient/urlcon_vs_httpclient.html

Categories: Code Tags:
  1. March 28th, 2007 at 05:01 | #1

    When i read a remote file using URL class, i am getting the older version of the file rather than the new version of the file.Please help