lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Cookie problems?


From: brian j. pardy
Subject: Re: lynx-dev Cookie problems?
Date: Sat, 26 Sep 1998 12:59:44 -0700

Heikki Kantola wrote:
> According to brian j. pardy <address@hidden>:
> > I think this fixes part or all of the problem.
> > 
> > Laura, could you try this on shopping.com, and Heikki on IMDB? 
> 
> The patch fixes the automatic cookie accepting, but...

Okay, it seems to have also handled Ismael and Laura's problems.

> > Against pre2.
> > 
> > fgets() was leaving a newline at the end of each cookie read from the
> > persistent cookie file, this patch removes the newline at the end.
> > 
> > When a domain had more than one cookie, Lynx was improperly sending the
> > cookie headers. Where it should be sending:
> > 
> > Cookie: IMDB[blah]=BLAHBLAHBLAH; IMDB2=BLAH2
> > 
> > Lynx was sending:
> > 
> > Cookie: IMDB[blah]=BLAHBLAHBLAH
> 
> ....there still (got this with unpatched version too) appears to be 
> something odd with using persistent cookies via proxy (Squid/1.2.beta25
> in my case to be exact) as if I try eg. searching something from IMDb,
> I get error message: 
> 
>  The requested URL could not be retrieved
>  _________________________________________________________________
>            
>  While trying to process the request:
>  POST /M/multi-search HTTP/1.0
>  Host: us.imdb.com
>  Accept: text/html, text/plain, application/x-dvi, application/pdf, 
>  application/postscript, image/x-ham, image/x-iff, image/x-ilbm, image/tiff,
>  image/gif, image/jpeg, video/*, video/mpeg, text/sgml, video/mpeg, 
> image/jpeg,
>  image/tiff, image/x-rgb
>  Accept: image/png, image/x-xbitmap, image/x-xbm, image/gif, application/
>  postscript, video/mpeg, image/jpeg, image/x-tiff, image/x-rgb, image/x-xbm,
>  image/gif, application/postscript, */*;q=0.01
>  Accept-Encoding: gzip, compress
>  Accept-Language: en
>  Pragma: no-cache
>  Cache-Control: no-cache
>  User-Agent: Lynx/2.8.1pre.2 libwww-FM/2.14
>  Referer: http://www.imdb.com/
>  Cookie2: $Version="1"
>  Cookie: IMDBDATA=68657a7540696b692e66693a36323536323a312e313a3a68657a
>  7540696b692e66693a36323536323a36383339353a48657a753a353a32383a31313a3a
> 
>  The following error was encountered:
>         * Invalid Request     
> 
>  Some aspect of the HTTP Request is invalid. Possible problems:
>       * Missing or unknown request method
>       * Missing URL
>       * Missing HTTP Identifier (HTTP/1.0)
>       * Request is too large
>       * Content-Length missing for POST or PUT requests
>         * Illegal character in hostname; underscores are not allowed
> 
> If I disable proxy or use unsaved cookie everything works fine...

So you're saying that (while using Squid), if you accept a cookie
interactively within Lynx, there are no problems? 

I don't use Squid, so someone who does could probably debug it better, but
if you could give me trace output from an identical working and
non-working session, I could give it a try, at least.

-- 
Don't be irreplaceable, if you can't be replaced, you can't be promoted.
"She appeared solemn but calm." -CNN

reply via email to

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