[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Need help feeding lynx a cookie

From: Thomas Dickey
Subject: Re: lynx-dev Need help feeding lynx a cookie
Date: Tue, 23 Jul 2002 15:05:43 -0400
User-agent: Mutt/1.2.5i

On Tue, Jul 23, 2002 at 05:56:05AM -0400, Larry W. Virden wrote:
> I'm looking for some help on how to go about updating my lynx configuration
> so that it recognizes cookies.
> This has been an ongoing battle.  Yahoo changes their cookies every
> 6 months to a year.  Each time, they create even more broken cookies,
> and then I struggle to figure out how to update my lynx configuration
> so that the new cookies are recognized.
> My current .lynxrc file says:
> When I visit, I see one remaining cookie prompt:
> Accept invalid cookie for ''? (n) 
> Lynx is eating the remaining cookies.
> I am at a loss at what I need to give lynx.  Can someone teach me how
> to use the -trace output, or whatever other tools lynx provides, so that
> I can tell lynx not to ask for this cookie?  Thank you!

I guess it is not exactly human-readable.  The trace only makes sense
to me if I look up messages in the source-code and read that.

Reading the code, I see the check in src/LYCookies.c which is causing
the prompt - FAILS_COND4 - which says in effect:

        There is a "." in "" before the string
        "" - that is questionable.

Working backwards, it appears that if the code found an entry for
"" marked in the trace something like

        cookie_domain_flag_set (, bv=2, invcheck_bv=2)

it would work as you want.  The last "2" is INVCHECK_LOOSE.
A "0" tells it to query (INVCHECK_QUERY).  So the first thing to check
is whether you're getting that trace line.  (If you are, then I guess
there's reason to check if the code isn't overwriting that later - a
bug).  To make it simple to see what's really going on, I suggest adding
a CTRACE at the bottom of the find_domain_entry() function, e.g.,
right before the "return de;":

        CTRACE((tfp, "find_domain_entry(%s) bv:%d, invcheck_bv:%d\n", name,
                de ? de->bv : -1,
                de ? de->invcheck_bv : -1));

Thomas E. Dickey <address@hidden>

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]