Cookie rejected?

  • 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 attribute "" 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\, 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?



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

Sign up for the SourceForge newsletter:

No, thanks