I am trying to get requests to pass on encoded strings in a URL. For example:
/application/controller/function/hello%20world
so that in my function I can access request.args and get a string that I can unquote().
I tried modifying rewrite.py to not convert %20 but that caused some error. Something else is catching these requests somewhere that I am having trouble finding. I noticed the httpserver.log file has:
127.0.0.1, 2011-09-02 00:12:09, GET, /application/controller/function/hello world, HTTP/1.1, 200, 0.169954
with the space already converted. Maybe that gives a hint. Where are the url's getting unencoded?
Below are the contents of my routes file:
#!/usr/bin/python
# -*- coding: utf-8 -*-
default_application = 'chips'
default_controller = 'default'
default_function = 'index'
routes_onerror = [
(r'*/404', r'/chips/static/404.html')
,(r'*/*', r'/chips/static/error.html')
]