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 Steven Terrell <St...@guideworkstv.com> on 2005/07/08 19:56:18 UTC
multiple threads and cookies
Folks,
My implementation uses the MultiThreadedHttpConnectionManager to manage
many thread's use of a single HttpClient. The single client has an HttpState
object that is used to retrieve cookies from the reply. My question: how can
each thread know its getting the correct cookies when all of my threads are
getting the cookies from the response? Do I need to get the cookies before
releasing the connection? I am just not sure how I can be sure that, with a
single client/state, each thread is getting the right cookies.
Steve Terrell