Using the normal 404 handler in AOLServer, I've found you can get the
url from [ns_conn request].  This has the full request, like

GET /my/file/index.tcl?query1=val1&query2=val2 HTTP/1.1

This works for me.  Take a look, for example, at
http://www.rustybrooks.org/testtest/index.tcl?foo=bar

Rusty


On Fri, 12 Oct 2001, Michael E. Duffy wrote:

> Under Apache, it's possible to recover the URL that caused a 404, which can
> be handy in helping the user *and* identifying the problem (e.g., a typo in
> an HREF).
>
> I'd like to do the same for my AOLserver 404 handlers, but can't seem to
> locate the information (Ns_ConnRedirect overwrites the original conn
> request with the URL of the redirect, so apparently not accessible even to
> C/Tcl APIs).
>
> Any suggestions?  Anyone hacked the source to allow this?
>
> I'm presently running 3.2+ad12 in production.
>
> TIA,
> Mike
>

------------------------------------------
Rusty Brooks : http://www.rustybrooks.org/
    Spewing wisdom from every orifice
------------------------------------------

Reply via email to