On Aug 16, 2010, at 12:41 PM, Michael Wolfe wrote: > I'm not sure anything can be done about it from within web2py (though > Jonathan could certainly answer that better than I). It appears to be > a limitation of the rocket web server. It may need to be taken up > with the development team working on Rocket. Of course, if it's a > problem with Rocket it could be a problem with other web servers. > > It seems like the safest thing would be to use one of the environment > variables required by the PEP. PATH_INFO almost works, but it is > returning the URL _after_ it has been rewritten by routes.py. Maybe > we can intercept and set the variable before the url is rewritten? > Maybe we would only do that if the web server did not define a > request_uri environment variable?
Under certain circumstances, we write WEB2PY_ORIGINAL_URI into the environment. But not always. And in error handling, it's not obvious (to me) that we necessarily want the original (vs rewritten) URL. Maybe the query string (as in the current subject line) ought to include them both.