lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev yahoo cookies not working the same in 2.8.3.dev15


From: Larry W. Virden
Subject: lynx-dev yahoo cookies not working the same in 2.8.3.dev15
Date: Tue, 23 Nov 1999 17:38:24 -0500 (EST)

Platform: SPARC Solaris 2.6, Sun compiler.  I can provide all the configuration
info if that appears to be needed - I wanted to give the overview first.


In lynx 2.8.2.rel1, lynx interactions with http://mail.yahoo.com/ in a way
that seems to be what the web site intended - one logs in with a login
and password the first time (and indicate you want the info remembered),
subsequent attempts to log in during the next 4-5 hours takes you
directly into the application.  After a few hours, the session 'times out'
and when you attempt to access the site, it remembers your login id but
you have to resupply the password.

With lynx 2.8.3dev.15, each access to the site requires one to enter both
the login and password, regardless of the length of time between sessions.

So, I thought "I shall do a trace and just see what the difference is".
I ran my older lynx as

slynx -trace http://mail.yahoo.com/

and up comes the site, just fine.  I quit and rename Lynx.trace.  Then I
type 

lynx -trace http://mail.yahoo.com/
# to pick up the new version

and I get:
(a clear screen)
HTTP/1.0 200 OKSegmentation Fault(coredump)

$ dbx lynx core
program terminated by signal SEGV (no mapping at the fault address)
Current function is HTML_start_element
 5065               CTRACE((tfp, "Ok, we're trying [%s]\n", I.type));
(dbx 1) where
  [1] strlen(0x0, 0x0, 0x0, 0x7efefeff, 0x81010100, 0x2ff1d8), at 0xef5246fc
  [2] _doprnt(0x25c05c, 0x0, 0x0, 0x0, 0x4469764c, 0x4578616d), at 0xef55a61c
  [3] _fprintf(0x2ea108, 0x25c048, 0xef5aa9d4, 0x2ccbcc, 0xef5a3100, 0x14c), at 
0xef563684
=>[4] HTML_start_element(me = 0x320958, element_number = 60, present = 0x323860 
"", value = 0x323884, tag_charset = 0, include = 0x32395c), line 5065 in 
"HTML.c"
  [5] start_element(context = 0x323830), line 1268 in "SGML.c"
  [6] SGML_character(context = 0x323830, c_in = '>'), line 3618 in "SGML.c"
  [7] SGML_write(context = 0x323830, str = 0x2d8454 
"ttp%3a//edit.yahoo.com/config/mail%3f.intl=&.src=ym&partner=&promo=&.last=">Sign
 me up!</a></font></b>\n</td></tr>\n</table></td></tr>\n<tr><td nowrap 
bgcolor=dcdcdc>\n<font face=Arial><b>I'm already registered with 
Yahoo!</b></font></td></tr>\n<tr><td align=right>\n<table border=0 
cellpadding=2 cellspacing=0>\n<tr><td align=right nowrap><font face=Arial 
size=-1>Yahoo! ID:</font></td>\n<td><input name=login size=20 
maxlength=32></td></tr>\n<tr><td align=right nowrap><font face=Arial 
size=-1>Password:</font></td><td>" ..., l = 1460), line 4316 in "SGML.c"
  [8] HTMIME_write(me = 0x31f4f0, s = 0x2d8454 
"ttp%3a//edit.yahoo.com/config/mail%3f.intl=&.src=ym&partner=&promo=&.last=">Sign
 me up!</a></font></b>\n</td></tr>\n</table></td></tr>\n<tr><td nowrap 
bgcolor=dcdcdc>\n<font face=Arial><b>I'm already registered with 
Yahoo!</b></font></td></tr>\n<tr><td align=right>\n<table border=0 
cellpadding=2 cellspacing=0>\n<tr><td align=right nowrap><font face=Arial 
size=-1>Yahoo! ID:</font></td>\n<td><input name=login size=20 
maxlength=32></td></tr>\n<tr><td align=right nowrap><font face=Arial 
size=-1>Password:</font></td><td>" ..., l = 1460), line 1713 in "HTMIME.c"
  [9] HTCopy(anchor = 0x31e128, file_number = 4, handle = (nil), sink = 
0x31f4f0), line 741 in "HTFormat.c"
  [10] HTLoadHTTP(arg = 0x31e2f8 
"http://login.yahoo.com/config/login?.src=ym&.lg=us&.done=http://edit.yahoo.com/config/mail%3f.intl=&.intl=&.rand=4dectbfh0kmoo";,
 anAnchor = 0x31e128, format_out = 0x3079e0, sink = (nil)), line 1947 in 
"HTTP.c"
  [11] HTLoad(addr = 0x31dc60 
"http://login.yahoo.com/config/login?.src=ym&.lg=us&.done=http://edit.yahoo.com/config/mail%3f.intl=&.intl=&.rand=4dectbfh0kmoo";,
 anchor = 0x31e128, format_out = 0x3079e0, sink = (nil)), line 699 in 
"HTAccess.c"
  [12] HTLoadDocument(full_address = 0x31dc60 
"http://login.yahoo.com/config/login?.src=ym&.lg=us&.done=http://edit.yahoo.com/config/mail%3f.intl=&.intl=&.rand=4dectbfh0kmoo";,
 anchor = 0x31e128, format_out = 0x3079e0, sink = (nil)), line 931 in 
"HTAccess.c"
  [13] HTLoadAbsolute(docaddr = 0xefffda84), line 1091 in "HTAccess.c"
  [14] getfile(doc = 0x2d2304), line 815 in "LYGetFile.c"
  [15] mainloop(), line 5330 in "LYMainLoop.c"
  [16] main(argc = 3, argv = 0xefffe244), line 2040 in "LYMain.c"
(dbx 2) print I.type
I.type = (nil)


So, after I make this patch (well, I went through and tried to if all
the ctrace calls, after I hit two or three in a row), I am finally able
to get through.

--- src/HTML.c.orig     Tue Nov 23 17:29:46 1999
+++ src/HTML.c  Tue Nov 23 17:32:15 1999
@@ -5028,2 +5028,3 @@
 #else
+           if (I.type)
                    CTRACE((tfp, "Attempting to fake as: %s\n", I.type));
@@ -5179,2 +5180,3 @@
            }
+           if (I.type)
            CTRACE((tfp, "2.Ok, we're trying [%s] (present=%p)\n", I.type, 
present));
@@ -5200,2 +5202,3 @@
 
+           if (I.type)
                CTRACE((tfp, "3.Ok, we're trying [%s]\n", I.type));
@@ -5221,2 +5224,3 @@
                }
+           if (I.type)
                CTRACE((tfp, "4.Ok, we're trying [%s]\n", I.type));
@@ -5312,2 +5316,3 @@
 #ifndef EXP_FILE_UPLOAD
+           if (I.type)
            CTRACE((tfp, "I.%s have %d chars, or something\n", I.type, chars));
@@ -5387,2 +5392,3 @@
 #ifndef EXP_FILE_UPLOAD
+           if (I.type)
            CTRACE((tfp, "I.%s, %d\n", I.type, IsSubmitOrReset));


Now I have the trace files.  What _appears_ to be happening is either the
trace output is not outputing enough information, or, the new code is
not getting all the cookie info - in the trace, I see:

2153c726
< User-Agent: Lynx/2.8.2rel.1 libwww-FM/2.14
---
> User-Agent: Lynx/2.8.3dev.15 libwww-FM/2.14
2156c729
< Cookie: B=0rguq6g8mhrtu; Y=v=1&n=1scejighn0oed&l=bl8h34d/o&p=m1n1a1s491030g&r=
01&lg=us; T=z=6FxO4A6LGP4AtKtjB06V4KxNgY2MTc1NjE0MTY-&a=AAE&sk=DAADmo24uDGX1p&d=
c2wBTVFFeE5qQXlNVFl6TmpFLQFhAUFBRQF6egE2RnhPNEFnV0E-; YM.State=YM%3d; YM.Pref=fa
rm%3d1%26silo%3dms18%26email%3dlvirden%40yahoo.com%26sigatt%3d1%26head%3dbrief%2
6fwd%3dattach%26fontsz%3dnormal%26msgwidth%3d82%26order%3ddown%26inc%3d200%26got
o%3dmsg
---
> Cookie: B=cknhieitsv5hk


There are so many differences in the two traces that it becomes a struggle
for me to figure out what's important.  The old trace is over 4000 lines
long, while the new one is less than 2000 ....

Anyways, I just thought I would mention what I am seeing.
-- 
Larry W. Virden                 <URL: mailto:address@hidden>
<URL: http://www.purl.org/NET/lvirden/> <*> O- 
Unless explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-

reply via email to

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