HTTPClient.HTTPConnection reused?
"Nithya Veluswamy" <[email protected]> Fri, 27 Sep 2002 14:43:49 +0530
| Newsgroups | gmane.comp.web.jigsaw |
|---|---|
| Message-ID | <[email protected]> |
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:[email protected]/path/file.txt");
// .......
// Put files do operations
//......
// close the connection
m_HTTPConnection.stop();
// New Connection
HTTPConnection m_HTTPConnection3 = new new
HTTPConnection("http://baduser:[email protected]/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