HttpClient forgets Cookies?

Discussion in 'Java' started by Snyke, Jan 24, 2006.

  1. Snyke

    Snyke Guest

    Ok my problem is simple: I'm using HttpClient to simulate multiple
    clients that access my webapplication, goal is some sort of stress
    testing.
    Problem is that HttpClient forgets the cookies that are set! I have a
    thread for every Virtual Client and every thread has an instance of
    HttpClient, then it issues Requests to the server and the server should
    set certain cookies. Ethereal tells me that the cookies are set
    correctly but HttpClient keeps them only for the next request then they
    just disappear.

    Any idea how I could get this to work? Or did I get someting
    fundamentally wrong with the concept of cookies in HttpClient?

    Greets,
    Snyke
    Snyke, Jan 24, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QVNQIERldmVsb3Blcg==?=

    Asp.net forgets session cookies on every page

    =?Utf-8?B?QVNQIERldmVsb3Blcg==?=, Dec 28, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    390
    =?Utf-8?B?QVNQIERldmVsb3Blcg==?=
    Dec 28, 2005
  2. Maverick
    Replies:
    1
    Views:
    12,207
    Maverick
    Feb 7, 2004
  3. Richard
    Replies:
    0
    Views:
    670
    Richard
    Apr 26, 2004
  4. Replies:
    2
    Views:
    1,764
  5. _Who
    Replies:
    7
    Views:
    2,635
Loading...

Share This Page