Stephen Carville wrote:

The login page POSTs to a new URL for authorization check.  Depending
on the results, The authcheck routine then redirects to the splash
page or an error page.  This keeps the history clean but seems to
require I append the ?rm=runmode to the redirect URL.

You could just not do a redirect (which uses HTTP and makes the browser go fetch another URL). You could instead just return the run mode you want. Something like this:

    return $ok ? $self->splash : $self->error;

Is there way to
avoid this?  Maybe make the redirect to send the runmode as a POST
instead of a GET?

No, the request that follows an HTTP redirect are always GETs and you can't force the browser to do something else.

--
Michael Peters
Plus Three, LP


#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to