On Wed, Jul 05, 2006 at 12:56:09PM -0400, Steve Terrell wrote: > I have successfully managed cookies in threads. Your code shows setting > the cookie policy, but not setting any actual cookies. > > I would suggest creating a new HostConfiguration and HttpState for every > executeMethod call, and use HttpClient.executeMethod(HostConfiguration, > GetMethod, HttpState). The cookies are stored in and retrieved from > HttpState. You will need to manage the storage of the cookies locally, > including how to retrieve the proper cookies to be used in the current > thread.
Okay, so I should keep cookies in my own code and pass them to executeMethod either with using HttpState object or with adding cookie directly with addcookie method. Could you please explain why you are using HostConfiguration and why it needs to be created for each thread? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
