Michael Peters wrote:

Mark Stosberg wrote:
The 'not_found' feature is CGI::Application::Dispatch, providing its own
way to specify a custom 404 document.

It's flexible in that it can refer to page that is dispatched, or an
external URL. I like that.

As a refinement, I'd like pages that can be dispatched for not_found to
be displayed directly. That saves a round-trip to the browser, but it
also provides another important benefit: the URL in the location bar
won't change, which is how 404's normally work.

Any reason not proceed with that refinement?

Nope, I think it should do that. Under mod_perl you do an internal redirect so
the URL stays the same but you can get what ever page you want. How would you do
this under normal CGI?

It basically repeat the dispatching process: It would try to dispatch the URL internally, and return the HTML directly if it works, or redirect externally to the URI if it doesn't. Of course, if the URL is absolute (starts with http://...), then we could skip bothering to try to dispatch it.

  Mark



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to