Scott Mueller wrote:
I tried to add cookies like this, but no cookies are set as can be seen by
the actual http post:
DefaultHttpClient client = new DefaultHttpClient();
client.getCookieStore().addCookie(new BasicClientCookie("JSESSIONID",
getParameter("session")));


You also need to correctly set the domain and path attributes of the cookie. If the domain attribute of a cookie is set incorrectly, HttpClient will be unable to match it to the origin server.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to