Help with Jakarta HttpClient Cookies

Discussion in 'Java' started by Richard, Apr 26, 2004.

  1. Richard

    Richard Guest

    I have an HttpClient application and I want to set a cookie in the
    request header and send it along with the req. to the server.

    I have tried method.addRequestHeader and method.setRequestHeader
    without success. The method calls do not set cookies. (I verified
    that you can set other types of headers with them.

    Can someone please instruct me on how to set a Cookie in my request?

    Thanks
    Richard (willirl)
     
    Richard, Apr 26, 2004
    #1
    1. Advertisements

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. Alex Hunsley
    Replies:
    1
    Views:
    6,579
    Alex Hunsley
    May 28, 2004
  2. Michael Fortin
    Replies:
    1
    Views:
    5,993
    John C. Bollinger
    Oct 12, 2004
  3. Wil Hadden

    Jakarta HttpClient POST question

    Wil Hadden, Nov 8, 2004, in forum: Java
    Replies:
    11
    Views:
    3,892
    blueray
    Jul 1, 2009
  4. Rachel
    Replies:
    0
    Views:
    940
    Rachel
    Oct 17, 2005
  5. Brent

    Jakarta's Latest HttpClient

    Brent, Jan 19, 2006, in forum: Java
    Replies:
    2
    Views:
    5,880
    Brent
    Jan 20, 2006
  6. Joe Linux
    Replies:
    0
    Views:
    773
    Joe Linux
    Sep 15, 2006
  7. Replies:
    0
    Views:
    559
  8. Paladin
    Replies:
    0
    Views:
    788
    Paladin
    Aug 15, 2007
Loading...