hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-533) CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, <Some CookieSpec>); does not work as documented
Date Mon, 15 May 2006 19:32:07 GMT
     [ http://issues.apache.org/jira/browse/HTTPCLIENT-533?page=all ]

Oleg Kalnichevski updated HTTPCLIENT-533:
-----------------------------------------

    Bugzilla Id:   (was: 37712)
    Fix Version: 3.1 Alpha 1
                     (was: 3.1 Final)
      Assign To:     (was: HttpClient Dev)

> CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, <Some CookieSpec>); does
not work as documented
> -----------------------------------------------------------------------------------------------------
>
>          Key: HTTPCLIENT-533
>          URL: http://issues.apache.org/jira/browse/HTTPCLIENT-533
>      Project: HttpComponents HttpClient
>         Type: Bug

>   Components: HttpClient
>     Versions: 3.0 RC3
>  Environment: Operating System: Windows 2000
> Platform: PC
>     Reporter: Bernhard Petri
>      Fix For: 3.1 Alpha 1
>  Attachments: docs-patch.diff, java0.log.0, patch.txt
>
> I use HtmlUnit to access some quote information. Cookies shall be ignored,so I
> set the default policy to CookiePolicy.IGNORE_COOKIES. Nevertheless I get error
> messages after starting my program. 
> The code reads:
> ---------------------------------------
> CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, IgnoreCookiesSpec.class);
> final WebClient webClient = new WebClient();
> final URL url = new URL("http://de.finance.yahoo.com/q?s=CB3569.SG");
> final HtmlPage page = (HtmlPage) webClient.getPage(url);
> ----------------------------------------
> The error messages are:
> ----------------------------------------
> WARNUNG: Cookie rejected: "$Version=0; PRF=&t=CB3569.SG; $Domain=finance.yahoo.c
> om; $Path=/". Domain attribute "finance.yahoo.com" violates RFC 2109: domain mus
> t start with a dot
> 30.11.2005 10:28:20 org.apache.commons.httpclient.HttpMethodBase processResponse
> Headers
> WARNUNG: Cookie rejected: "$Version=0; B=7fkoh9l1oqs4h&b=3&s=hb; $Domain=.yahoo.
> com; $Path=/". Domain attribute ".yahoo.com" violates RFC 2109: host minus domai
> n may not contain any dots
> ----------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message