» WSGI : environ[QUERY_STRING] parse something without a question mark?
WSGI : environ[QUERY_STRING] parse something without a question mark?
|September 18, 2014
Posted by forumadmin
Suppose the url is:
This is the script:
def application(environ, start_response):
a = environ['QUERY_STRING']
start_response('200 OK', [('Content-Type', 'text/html')])
the output is:
but the question is.. can the “?” be changed with some other symbol ?
is this possible without resorting to mod_rewrite and etc.. ?
More Related Questions
- can WSGI get the full URL rather than simply : environ[SERVER_NAME] ?.. if so.. Mod_Rewrite alternative? Currently..
can get the domain name. such as..
but can it also get..
- Main and beta WSGI apps OK, so I've been looking around for hours and this has me stumped.
I have an app not yet in production, and my client wants it to split into less stable and more stable. So, I elected to […]
- What is the difference between mod_wsgi and uwsgi? There seems to be mod_wsgi module in Apache and uwsgi module in Nginx. And there also seems to be the wsgi protocol and uwsgi protocol.
I have the following questions.
Are mod_wsgi and […]
- How Python web frameworks, WSGI and CGI fit together I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess:
- mod_wsgi, mod_python, or just cgi? I've been playing around with my own webserver (Apache+Ubuntu) and python. From what I've seen there are 3(?) main ways of doing this:
Apache configured to handle .py as cgi
- In production, Apache + mod_wsgi or Nginx + mod_wsgi? What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?
Which combination will need more memory and CPU time?
Which one is faster?
Which is known […]
- django 1.6.5 + python3 wsgi problems When I try to run my django project as a wsgi application, I get the following error in my app's error log:
Exception ignored in: <module 'threading' from […]
- Apache mod_wsgi: PermissionError when trying to access a page Trying to get Django running on this Apache box, using Python 3.3
httpd starts without fault but as soon as I try to access localhost, I am thrown a 500 error. The Apache logs say […]
- URL building with Flask and non-unique handler names Flask provides a url_for function to generate URLs to handlers based on the URL pattern. But this would imply that the handler functions must have unique names across the entire […]
- Pyramid – apache + mod_wsgi or nginx +uwisgi or nginx +pserve + supervisord I have used Pyramid on Apache + mod_wsgi in the past. While looking at pyramid deployment notes came across nginx + pserve config […]