Hi Roland,

Actually I was a little confused, because the cookies-link you refer to mentions the "compatibility specification described below", but as far as I can see, the specification is not explicitly mentioned below. It is however mentioned in the 2.0.2-specification: http://jakarta.apache.org/commons/httpclient/2.0/cookies.html, but client.getState().setCookiePolicy(CookiePolicy.COMPATIBILITY) is deprecated.

Well, what is meant - I guees - is that one should use:
method.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);

This solves the problem in my case.

Thanx for your help!


Regards,
Jesper


From: Roland Weber <[EMAIL PROTECTED]>
Reply-To: "HttpClient User Discussion" <[email protected]>
To: HttpClient User Discussion <[email protected]>
Subject: Re: Cookie rejected-problem
Date: Wed, 01 Feb 2006 04:16:08 +0100

Hello Jesper,

> WARNING: Cookie rejected: "$Version=0;
> SESSION_ID=204fcf36f697aff46ebcc7fa550e42e7; $Path=/;
> $Domain=gamebookers.com". Domain attribute "gamebookers.com" violates
> RFC 2109: domain must start with a dot
>
> Whar exactly does this mean, and how to deal with it?

Have a look at our cookie guide:
http://jakarta.apache.org/commons/httpclient/cookies.html

It includes a section about "Common Problems".

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to