How can I receive percent encoded slashes with Django on App Engine?

Posted by J. Frankenstein on Stack Overflow See other posts from Stack Overflow or by J. Frankenstein
Published on 2010-06-14T20:27:06Z Indexed on 2010/06/14 20:32 UTC
Read the original article Hit count: 161

Filed under:
|
|

I'm using Django with Google's App Engine.

I want to send information to the server with percent encoded slashes. A request like http:/localhost/turtle/waxy%2Fsmooth that would match against a URL like r'^/turtle/(?P<type>([A-Za-z]|%2F)+)$'. The request gets to the server intact, but sometime before it is compared against the regex the %2F is converted into a forward slash.

What can I do to stop the %2Fs from being converted into forward slashes? Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about django