Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpClient - Cookies

Assad Mohamed Bouayed
Posts: 1
  • Mark post as helpful
  • send pies
  • 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());

Cookie mycookie2 =
new Cookie(host,MmcpConstants.MMCP_COOKIE_JSESSIONID,getSessionID());

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
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?

Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!