Hi All,
I am working on posting multiple request to a server using HTTPClient . First i create a HTTPConnection (
http://www.innovation.ch/java/HTTPClient/api/HTTPClient/HTTPConnection.html) and then send a post request. For every post thats made the HTTPResponse is read and processed. After i process the Response, i try to stop the connection, but it doesn't seem to work. Although it stops when i don't play with the response. I am probably missing some cleanup here for reponse, but there doesn't seem to be a close method for HTTPResponse(
http://www.innovation.ch/java/HTTPClient/api/HTTPClient/HTTPResponse.html). This is how the code looks ...
I am not sure why the old connection doesn't die. Can anyone help me with this? Thanks everyone.
Thanks,
Kartik