Hello Linux Questions
I am hoping to build an Apache filter (a Python script) that responds to query parameters. I was keen to use
rather than use a framework such as Flask (which I use a lot) because I've not really done it before and I will make use of quite a lot of mod_proxy in this project and thought I was keeping it simple
My issue is that when I configure a single virtual host with the following configuration...
Code:
<VirtualHost *:80>
ExtFilterDefine foo_filter mode=output intype=text/html cmd="/usr/bin/python3 /var/www/html/foo.py"
SetOutputFilter foo_filter
</VirtualHost>
And /var/www/html/foo.py should (hopefully) display all variables...
Code:
#!/usr/bin/python3
import os
output = "<pre>"
for name, value in globals().copy().items():
output = output + "name: " + str(name) + " value: " + str(value) + "\n"
print(output)
When I query the vhost with some query parameters, e.g.
Code:
http://myserver&foo=bar
I get something which does not contain query parameters...
Should I be using
QUERY_STRING_UNESCAPED and if so, how would I use it?
Thanks for patience - I think I am missing something obvious