You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Bala mani <ba...@mail2world.com> on 2007/08/09 07:43:41 UTC
Http KeepAlive simulation
Hi all,
I have a application that has set of request such as
{
Get ----Request 1
Get ----Request 2
Post ----Request 3
Get ----- Request 4
Post Request 5
}
so for that above set of request , i am supposed to create getMethod object
and Postmethod object alternatly.
In this case i could i reuse connection. I am create only one object of
Httpclient but for each request i am
creating corresponding get or Post method object. Is this a correct way for
connection persistence or i have to change the way i send request.
Pls Help me.
Thank you.
--
View this message in context: http://www.nabble.com/Http-KeepAlive-simulation-tf4240711.html#a12066791
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: Http KeepAlive simulation
Posted by Roland Weber <os...@dubioso.net>.
You don't need to simulate keep-alive. HttpClient does
it for real. Just make sure that you use only one
instance of HttpClient for sending your requests.
http://jakarta.apache.org/commons/httpclient/performance.html#Connection_persistence
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org