Re: [Web-SIG] problem with wsgiref.util.request_uri and decoded uri

2008-09-10 Thread Andrew Clover
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.

[Web-SIG] problem with wsgiref.util.request_uri and decoded uri

2008-07-23 Thread Manlio Perillo
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)