Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting Timeout in URLConnection/HttpURLConnection

802203Mar 13 2010 — edited Mar 13 2010
Hi all,

I am trying to open a connection a website using the java.net.HttpURLConnection.

Please tell me what is the default timeout (how much time it will wait for getting reply ) and how we can change the

default value. Please help me.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2010
Added on Mar 13 2010
1 comment
153 views