W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 2002

HTTPClient.HTTPConnection reused?

From: Nithya Veluswamy <nithya.lakshmi@oracle.com>
Date: Fri, 27 Sep 2002 14:43:49 +0530
To: <www-jigsaw@w3.org>
Message-ID: <NGBBKELKIKMAOFMKNJNOKEMNCAAA.nithya.lakshmi@oracle.com>

Hello,
 I am using "http://www.innovation.ch/java/HTTPClient/" HTTPClient to talk
to WebDAV enabled server. I am finding that the connection is somehow kept
alive., for the same server.


public static void main {

	// I PUT to a server using

	HTTPConnection m_HTTPConnection = new new
HTTPConnection("http://user:password@www.host.com/path/file.txt");

	// .......
	// Put files do operations
	//......

	// close the connection

	m_HTTPConnection.stop();

	// New Connection

	HTTPConnection m_HTTPConnection3 = new new
HTTPConnection("http://baduser:badpassword@www.host.com/path/file.txt");

	// .......
	// Put files do operations using m_HTTPConnection3
	//......

	}

I am successful. I understand that the connection is persistent, but here
each user needs a different Connection.
Looks like I am overlooking something
Thanks
Nithya
Received on Friday, 27 September 2002 05:20:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:36 GMT