Cookie rejected?

2011-08-15
2013-03-13
  • Matthias Bohlen

    Matthias Bohlen - 2011-08-15

    When I run JStock in my development environment, the console window outputs this message every 5 seconds:
    WARNING: Cookie rejected: "$Version=0; B=6e0musp74hmaf&b=3&s=ao; $Path=/; $Domain=.yahoo.com". Domain attribute ".yahoo.com" violates RFC 2109: host minus domain may not contain any dots

    What does that mean?

     
  • yccheok

    yccheok - 2011-08-15

    This is most probably due to change of Yahoo server cookie policy.

    If believe if you add the following code to line 2300, org\yccheok\jstock\gui\Utils.java, the warnings will gone.

    httpClient.getParams().setParameter("http.protocol.single-cookie-header", true);        httpClient.getParams().setCookiePolicy(org.apache.commons.httpclient.cookie.CookiePolicy.BROWSER_COMPATIBILITY);
    

    Also, can you please help me to verify, after adding the above 2 lines, does the following 2 reported problems will gone too?

    https://sourceforge.net/projects/jstock/forums/forum/723854/topic/4656762
    https://sourceforge.net/projects/jstock/forums/forum/723855/topic/4647070

    Thanks.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks