hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesper Sahner" <jespersah...@hotmail.com>
Subject Re: Cookie rejected-problem
Date Thu, 02 Feb 2006 12:53:32 GMT
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 <http-async@dubioso.net>
>Reply-To: "HttpClient User Discussion" <httpclient-user@jakarta.apache.org>
>To: HttpClient User Discussion <httpclient-user@jakarta.apache.org>
>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: httpclient-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message