lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev problem with tvgen


From: brian j. pardy
Subject: Re: lynx-dev problem with tvgen
Date: Sat, 3 Oct 1998 19:16:09 -0700

Laura Eaves wrote:
> > Date: Sat, 3 Oct 1998 18:03:29 -0700
> > From: "brian j. pardy" <address@hidden>
> >...
> > I dug around and I wasn't able to reproduce this -- could you possibly
> > tell me how you're getting the error? I tried going to the tv listings
> > page, my zip code has very few channels however, so if it's over-running a
> > buffer or something mine won't cut it. :)
> 
> First, delete (or move) your cookie file.
> Go to http://www.tvgen.com/tv/listings/
> Cursor down to link 2 ("Enter") and hit return.
> Log on as ricklew with password 3234606
> Cursor down to link 5 ("Search").  Hit return.
> You get the bad request message.

I just tried this using 2.8.1pre.4 and I didn't receive any error. 

What version are you using?

> Exit lynx.  Start up again at http://www.tvgen.com/tv/listings/
> Cursor down to link 2 ("Enter").  Hit return.
> At this point I get hte bad request message and a blank page.

Right here I receive the login/password page. 

I figure that isn't correct, as I assume following the "Enter" link should
read the login/pw from the cookies stored. 

> Thanks for your help.  I'd like to zero in on what's wrong and
> correct if possible.

No problem at all.

> Did you try it with netscape or MSIE?

I only have Netscape (4.5PR2, Linux), and it all seems to work properly.
Going back to the "Enter" link under Netscape takes me to the grid page,
however, not the main login/password page that Lynx does.

My trace file looks similar to yours:

[...]
HTTP: Not sending proxy authorization (yet).
Writing:
GET http://www.tvgen.com/tv/listings/cgi-bin/login HTTP/1.0
Host: www.tvgen.com
Accept: text/html, text/plain, audio/mpeg, video/x-mpeg2, 
application/postscript, application/x-troff-man, video/quicktime, audio/x-mpeg, 
video/mpeg, application/pdf, audio/x-wav, audio/x-pn-realaudio, 
application/pdf, audio/x-wav, audio/x-mpeg
Accept: video/mpeg, video/quicktime, audio/x-pn-realaudio, 
audio/x-pn-realaudio-plugin, application/pgp-keys, application/x-gunzip, 
application/octet-stream, application/applefile, application/x-metamail-patch, 
sun-deskset-message, mail-file, default
Accept: postscript-file, audio-file, x-sun-attachment, text/enriched, 
text/richtext, application/andrew-inset, x-be2, application/postscript, 
message/external-body, message/partial, image/x-xwd, image/gif, image/*, 
image/jpeg, audio/basic, audio/*
Accept: text/sgml, */*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
Negotiate: trans
User-Agent: Lynx/2.8.1pre.4 libwww-FM/2.14
Referer: http://www.tvgen.com/tv/listings/
Cookie2: $Version="1"
Cookie: NGUserID=ce0f6758-17076-907466509-1; 
TVG_CNUM=2-2:3-0:4-2:5-0:6-0:7-1:8-0:9-1:10-0:11-1:12-0:13-1:14-2:15-0:16-0:17-2:18-0:19-0:20-1:21-0:22-1:23-1:23-1:24-1:25-1:25-1:26-1:27-1:28-1:29-1:30-1:31-1:32-1:33-1:34-1:35-2:36-1:37-1:38-1:39-1:40-1:41-1:41-1:42-1:43-3:44-1:45-3:46-3:47-1:48-1:49-1:50-1:51-1:52-1:53-1:98-2:99-1;
 TVG_CDISP=SHOW:KTVK:HBO:KPHO:K55EH:TBS:KAET:WGN:KSAZ:AZ 
11:KPNX:PGUIDE:TMC:KNXV:KUTP:MAX:KASW:KTVW:SCHL:KPAZ:ACCS:DSC:PIN:AMC:CMTV:TNN:TNT:VH1:CSPAN:MTV:FAM:LIFE:USA:ESPN:FSAZ:DIS:CNN:NICK:HEAD:CNBC:A%26E:MAGAZINE:SUNS:QVC:VC1:PPV
 PREV:HOT CH:VC5:TWC:BET:CMTV:TLC:ACCS:ACCS:CSPAN2:STARZ:LEASED; 
TVG_CID=SHOW:KTVK:HBOW:KPHO:KUSK:WTBS:KAET:WGN:KSAZ:1592192:KPNX:PGUIDE:TMCW:KNXV:KUTP:MAXW:KASW:KTVW:7138607:KPAZ:7138583:DSCW:PIN:AMC:CMT:TNN:TNT:VH1W:CSPAN:MTVW:FAMW:LIFW:USAW:ESPN:FSPX:DISW:CNN:NIKW:CNN2:CNBC:A_E:7138583:7138609:QVC1:VCI:PGUIDE:HOTCH:VC5:TWC:BET:CMT:TLC:7138583:7138583:CSPAN2:STARZW:12328228;
 
        TVG_EDNAME=Cox Communications; 
TVG_USER=548514-ricklew-36d2w41dzMiEY-10745-A-85302-99-tv; ZIP=85302

----------------------------------
Sending HTTP request.
HTTP: WRITE delivered OK
HTTP request sent; waiting for response.
HTTP: Trying to read 1023
HTTP: Read 278
Read 278 bytes of data.
HTTP: Rx: HTTP/1.0 302 Moved Temporarily 
HTTP: Scanned 2 fields from line_buffer
--- Talking HTTP1.
HTTP/1.0 302 Moved Temporarily
HTTP: Picked up location 
'http://www.tvgen.com/tv/listings/cgi-bin/page.c?page=login&nav=n&brand=tv'

I'm not sure why you are receiving a 400 error from what seems to be the
exact same info sent to the server as my copy is sending -- however, that
extra line in the headers before the TVG_EDNAME pair seems to be why it
isn't logging me in instantly -- the TVG_USER cookie with the
name/password is right after it, and I assume, not getting parsed.

I'll take a look around the source, but it'd be nice if some other people
did as well in case this is a limitation in the length of headers being
sent (does spec allow headers with breaks of some sort?) -- I'm only
familiar with the cookie handling code.

-- 
When in doubt, use brute force.
                -- Ken Thompson

reply via email to

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