DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37712>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37712 Summary: Cookie Policy IGNORE_COOKIES doesn't work Product: HttpClient Version: 3.0 RC3 Platform: PC OS/Version: Windows 2000 Status: NEW Keywords: ErrorMessage Severity: normal Priority: P2 Component: HttpCookie AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] 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 ---------------------------------------- -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
