now it works perfect thanks!
On Sun, Feb 22, 2009 at 8:07 AM, Oleg Kalnichevski <[email protected]> wrote:
> 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]
>
>
--
Scott Mueller
http://www.appletree.com
AppleTree - Solve the Puzzle