lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Re: Using Lynx -post_data option


From: Jim Spath (Webmaster Jim)
Subject: Re: LYNX-DEV Re: Using Lynx -post_data option
Date: Fri, 8 Nov 1996 08:15:14 -0500 (EST)

On Fri, 8 Nov 1996, Louis Mandelstam wrote:
> On Thu, 7 Nov 1996, Foteos Macrides wrote:
> > do when seeking help.  Lynx through v2.5 mishandled such redirections
> > as expected by that script, but v2.6 handles it properly, and thus
> > yields an error status from the target of the redirection.  The
> >     This is now an FAQ, so check the archives for previous discussion
> I did search for "-post_data lynx" on AltaVista, and didn't find any
> references indicating that 2.5 had a bug regarding this.  I did only check
> the first 3-4 pages out of several hundred however.

I've got a similar problem with a forms under 2.6.  I searched through
the archives last night and this morning, but haven't hit my
answer.

I use a simple perl program to redirect users from a form to a series
of other pages, with the fragment marker (#) added to take them
to a section of the document.  Lynx before 2.6 would just process
the redirect, and drop them at the right place.  2.6 asks if they
want to proceed, and then I get a server error.

The initial form has this:
----
<FORM method="post" 
action="http://www.mde.state.md.us/cgi-bin/was/matrix.cgi";>
 <INPUT type="radio" name="county" value="ALLG">
...
<INPUT type="submit" value="[ Retrieve! ]">
<INPUT type="reset" value="[Reset ]">
</FORM>
----
The perl code is:
#!/usr/local/bin/perl -w
$title = "The Matrix";
$headline = "matrix";
require "cgi-lib.pl";
if (&ReadParse(*input)) {
  print
"Location:http://www.mde.state.md.us/was/";,
   $input{report}.".html#".$input{county}."\n\n";
} else {
  print &PrintHeader,
   '<form><input type="submit">Data: <input name="myfield">';
}

----
Server (netscape :-( says:
                                 Server Error

   This server has encountered an internal error which prevents it from
   fulfilling your request. The most likely cause is a misconfiguration.
   Please ask the administrator to look for messages in the server's
   error log.
---
Should the Location line be changed to something else?


;
; 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]