wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes HttpClient - Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "HttpClient - Cookies" Watch "HttpClient - Cookies" New topic
Author

HttpClient - Cookies

Assad Mohamed Bouayed
Greenhorn

Joined: Oct 06, 2005
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpClient - Cookies
 
Similar Threads
can we retrieve cookie with JSP added thru servlet
How to recive / return cookies to server?
String inequality
creating cookies across domains
JSF 2 Flash scope cookie not set