You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Jesper Sahner <je...@hotmail.com> on 2006/02/01 01:46:51 UTC

Cookie rejected-problem

Hi!

I am trying to access a website and receive the following warning:

2006-02-01 01:50:47 org.apache.commons.httpclient.HttpMethodBase 
processResponseHeaders
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?


Regards,
Jesper



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


Re: Cookie rejected-problem

Posted by Jesper Sahner <je...@hotmail.com>.
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 <ht...@dubioso.net>
>Reply-To: "HttpClient User Discussion" <ht...@jakarta.apache.org>
>To: HttpClient User Discussion <ht...@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


Re: Cookie rejected-problem

Posted by Roland Weber <ht...@dubioso.net>.
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