lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV lynx causes a 500 internal server error (fwd)


From: Klaus Weide
Subject: Re: LYNX-DEV lynx causes a 500 internal server error (fwd)
Date: Thu, 21 Aug 1997 15:04:17 -0500 (CDT)

On Thu, 21 Aug 1997, Ulrich Windl wrote:

> Contacting www-rks.uni-regensburg.de with lynx causes a repeatable 500
> sinternal server error here. With netscape it works.
> 
> As requested I started lynx with "-trace" and captured the output.
> 
[ snip ]
> GET / HTTP/1.0
> Host: www-rks
> Accept: image/*, image/jpeg, text/html, text/plain, text/sgml, text/x-sgml, 
> application/x-wais-source, application/html, video/mpeg, image/jpeg, 
> image/x-tiff, image/x-rgb, image/x-png, image/x-xbitmap, image/x-xbm, 
> image/gif, application/postscript, */*;q
> =0.001
> Accept-Encoding: gzip, compress
> Accept-Language: en
> Accept-Charset: iso latin 1, iso-8859-1;q=0.001, us-ascii;q=0.001
> Negotiate: trans
> User-Agent: Lynx/2.7.1 libwww-FM/2.14
> 
[ snip ] 
> Alert!: HTTP/1.0 500 Server Error
[ snip ]
> Server: WinHttpd/1.4c (Shareware Non-Commercial License)
> Content-type: text/html
> 
> <HEAD><TITLE>500 Server Error</TITLE></HEAD>
> <BODY><H1>500 Server Error</H1>
> The server encountered an internal error or
> misconfiguration and was unable to complete your
> request.<P>
> Message: Line length exceeded caller's buffer size<P>
> Please contact the server administrator,
>  http-admin and inform them of the time the error occured, and
> anything you might have done that may have caused
> the error.<P>
> </BODY>

The server chokes on the "Accept:" request header line.  Apparently it
cannot deal with a line longer than about 254 characters.  In other words,
it's broken.

The message says, "Please contact the server administrator, httpd-admin",
and I suggest you do so.

As it happens, in your case the "Accept:" line was just about two
characters too long.  By pure coincidence, the things written to
the "Accept:" line have just slightly changed in the development code (and
in fotemods), so if you were using that code, you might still be under the
limit.  Also, as a workaround you could try to take viewers out of the
mailcap file or lynx.cfg, in case any of those MIME types come from there.

Lynx already limits the size of generated "Accept:" headers to 1000
characters (and generates additional header lines if there is more to
write).  You may want to lower that limit in HTTP.c and recompile.

By the way, the "Accept-Charset:" (which is taken from the

   preferred document c(H)arset :

line on the Options screen) isn't in valid syntax, you should use
"iso-8859-1" instead of "iso latin 1" (and in that case it's not needed
because iso-8859-1 is already sent by default).


   Klaus

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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