Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disconnect URLConnection

Status
Not open for further replies.

igowi

Programmer
Sep 18, 2001
45
US
I am using URLConnection class in my java program to connect with one web server. I want the connection disconnected from my java program. What should I do?
 
i notice that there is a URLConnection child (HttpURLConnection), that class has a disconnect method.

sorry that i can't help much cos I'm using the Connection class and thus no experience with URLConnection.
 
I didnt' test it yet.
But,
Thanks.

Even though I disconnet one HttpUrlConnection, I can open another HttpUrlConnection without authentication again, right?
Disconnecting the connection means that I can't use the object again. right?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top