Manlio Perillo wrote:
On the other hand, if the WSGI gateway *do* decode the uri,
I can no more handle '/' in uri.
Correct. CGI requires that '%2F' is decoded, and hence indistinguishable
from '/' when it gets to the application. And WSGI inherits CGI's flaws
for compatibility.
I'm having a nightmare with encoded/decoded uri and request_uri function:
from wsgiref.util import request_uri
environ = {
... 'HTTP_HOST': 'www.test.org',
... 'SCRIPT_NAME': '',
... 'PATH_INFO': '/b%40x/',
... 'wsgi.url_scheme': 'http'
... }
print request_uri(environ)