Thank you Graham, I was going crazy trying to figure this out.
Thankfully I control my hosting environment top to bottom (colocation)
so I will try using REQUEST_URI I will use it.
On Oct 8, 3:00 am, Graham Dumpleton <
Graham.Dumple...@gmail.com>
wrote:
> On Oct 8, 5:57 pm, Merrick <
merr...@gmail.com> wrote:
>
> > Could this problem be in the wsgi.py handler in django? If not I
> > suppose I need to look at mod_wsgi and quit asking here :)
>
> It is how Apache works and there is possibly not much you can do about
> it.
>
> In Apache 1.3, repeatingslashescan be passed through to CGI
> PATH_INFO variable in certain situations, but in Apache 2.X they
> aren't and instead, repeatingslashesare collapsed by Apache.
>
> To make the behaviour consistent, mod_wsgi will apply Apache 2.X
> behaviour to Apache 1.3 when passing through CGI variables in WSGI
> environment, and will drop repeatingslashes.
>
> So, if using Apache 2.X there would be nothing that could be done even
> if mod_wsgi code weren't collapsing the repeatingslashes.
>
> The closest you will get would be to look at and parse value of
> REQUEST_URI variable passed through in WSGI environment. For example,
> for normal and encoding repeatingslashes, one gets:
>
> PATH_INFO: '/a/b/c/http:/
www.wired.com/'
> QUERY_STRING: ''
> REQUEST_URI: '/wsgi/scripts/
echo.py/a//b/c/http%3A%2F%2Fwww.wired.com
> %2F%2F'
> SCRIPT_NAME: '/wsgi/scripts/echo.py'
>
> Although Apache/mod_wsgi supplies REQUEST_URI, it isn't a required
> WSGI variable and may not be available with other WSGI hosting
> solutions.
>
> In general relying onslashesand/or encodedslashesin PATH_INFO may
> not be a good idea. For discussion on these issues read through:
>
>
http://groups.google.com/group/python-web-sig/browse_frm/thread/2003e...
>
http://groups.google.com/group/python-web-sig/browse_frm/thread/5907c...
> > > allows me to have encodedslashesin the path_info without having