Re: closing connection with HttpURLConnection

On Mon, 1 Jan 2001, Ronen Lazar wrote:

> Hi all,
>
> I guess it's kind of a newbie question, but I'll shut it anyway:
> once I've created an instance of HttpURLConnection, how can I close the
> connection? I mean really close - close the socket, and not marking it as
> idle, or something like this.
> HttpURLConnection.disconnect() doesn't seem to do the job.

If you are using Jigsaw's API, it should cut the connection, as it will
utimately call HttpBasicConnection.close
For other implementation I don't know...
Regards,

-- 
Yves Lafon - W3C / Jigsaw - XML Protocol - HTTP
"Baroula que barouleras, au tiéu toujou t'entourneras."

Received on Wednesday, 3 January 2001 10:18:31 UTC