• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

HttpClient - Cookies

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I use the HttpClient from Apache. I set the following two cookies:

Cookie mycookie1 =
new Cookie(host, MmcpConstants.MMCP_COOKIE_BIG_IP, getBigIP());
mycookie1.setPath("/");

Cookie mycookie2 =
new Cookie(host,MmcpConstants.MMCP_COOKIE_JSESSIONID,getSessionID());
mycookie2.setPath("/mmcp");
mycookie2.setVersion(1);

When the HTTP request is sent, it looks as follow:

POST /mmcp/C;jsessionid=01cdhfooi1?url=m3 HTTP/1.1
User-Agent: VodafoneLiveV02
Content-type: application/x-www-form-urlencoded
Host: 10.221.23.93:9090
Cookie: $Version="1"; JSESSIONID="01cdhfooi1"
Cookie: $Version=0; BIGipServerMMCP_HTTP=1030006976.36895.0000
Content-Length: 54

===> Why is the value of the JSESSIONID included between double quotes? It seems that the server with which my application interfaces to does not recognize the JESSIONID. Is that possible? How can I remove the double quotes?

thanks
 
They weren't very bright, but they were very, very big. Ad contrast:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic