Created
August 25, 2016 00:23
-
-
Save coderatchet/1908ee55415db9ca6fa48f4e4d13f643 to your computer and use it in GitHub Desktop.
Example environ variable contents of mod_wsgi apache server POST method (sanitized for public viewing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example of the contents of the environ variable that is passed to wsgi application callables. i.e. __call__(environ, reponse) | |
{'mod_wsgi.listener_port': '9999' | |
'HTTP_X_FORWARDED_SERVER': 'localhost' | |
'HTTP_REFERER': 'http://localhost:1234/app' | |
'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x105da2190>> | |
'HTTP_ACCEPT_LANGUAGE': 'en-AU,en;q=0.8' | |
'CONTEXT_DOCUMENT_ROOT': '/.../myapp/conf/.mod_wsgi-express/api/htdocs' | |
'SERVER_SOFTWARE': 'Apache' | |
'SCRIPT_NAME': '' | |
'REQUEST_SCHEME': 'http' | |
'mod_wsgi.handler_script': '/.../myapp/conf/.mod_wsgi-express/api/handler.wsgi' | |
'SERVER_SIGNATURE': '' | |
'HTTP_X_FORWARDED_PORT': '1234' | |
'PATH_INFO': '/request-endpoint' | |
'HTTP_ORIGIN': 'http://localhost:1234' | |
'SERVER_PROTOCOL': 'HTTP/1.1' | |
'QUERY_STRING': '' | |
'wsgi.errors': <mod_wsgi.Log object at 0x104234fa8> | |
'CONTENT_LENGTH': '43' | |
'wsgi.input': <_io.BytesIO object at 0x105d963b0> | |
'helsal_config': 'helsal_app_devel.cfg' | |
'HTTP_CONNECTION': 'Keep-Alive' | |
'HTTP_COOKIE': 'alwiejfhlajbdnljkasdlfkhalsjdfhalwkehflawhefiansdjkasbdlkfawkljehflakwhe=aoknfaonrvajbnsdlkacjsldhcfalkwehialjwebfliasbdjablefjhawliejhfakljshdfkjlsah; _gat=1; _ga=GA1.1.1291234898.1471919104' | |
'SERVER_NAME': 'localhost' | |
'REMOTE_ADDR': '::1' | |
'webob.is_body_seekable': True | |
'mod_wsgi.queue_start': '1472083317752379' | |
'mod_wsgi.request_handler': 'wsgi-handler' | |
'apache.version': (?,?,??) | |
'mod_wsgi.thread_id': 1 | |
'wsgi.url_scheme': 'http' | |
'beaker.session': {'_accessed_time': 1472083318.480625 | |
'_creation_time': 1472082172.972546 | |
'session_user_key': 2L} | |
'mod_wsgi.callable_object': 'handle_request' | |
'SERVER_PORT': '9999' | |
'mod_wsgi.total_requests': 0L | |
'HTTP_PRESTANS_RESPONSE_ATTRIBUTE_LIST': '{"pickles":true, "post_pickles":true,"pickle_name":true,"created_pickle":true,"pickle_id":true}' | |
'mod_wsgi.listener_host': '' | |
'SERVER_ADDR': '::1' | |
'DOCUMENT_ROOT': '/.../myapp/conf/.mod_wsgi-express/api/htdocs' | |
'mod_wsgi.process_group': 'localhost:9999' | |
'mod_wsgi.thread_requests': 0L | |
'mod_wsgi.daemon_connects': '1' | |
'mod_wsgi.request_id': 'uwA8G/KCtZ0' | |
'SCRIPT_FILENAME': '/.../myapp/conf/.mod_wsgi-express/api/htdocs/request-endpoint' | |
'SERVER_ADMIN': '[no address given]' | |
'DYLD_LIBRARY_PATH': '/Users/jared/venvs/helsal/lib/python2.7/site-packages/mod_wsgi_packages/httpd/lib:' | |
'HTTP_PRESTANS_MINIFICATION': 'Off' | |
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/52.0.2743.116 Safari/537.36' | |
'HTTP_HOST': 'localhost:9999' | |
'CONTEXT_PREFIX': '' | |
'wsgi.multithread': True | |
'mod_wsgi.enable_sendfile': '0' | |
'mod_wsgi.daemon_restarts': '0' | |
'REQUEST_URI': '/request-endpoint' | |
'HTTP_ACCEPT': 'application/json' | |
'mod_wsgi.path_info': '' | |
'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'> | |
'wsgi.version': (1, 0) | |
'GATEWAY_INTERFACE': 'CGI/1.1' | |
'HTTP_X_FORWARDED_FOR': '::1' | |
'webob._body_file': (<_io.BufferedReader>,<mod_wsgi.Input object at 0x10448ba58>) | |
'mod_wsgi.script_name': '/request-endpoint' | |
'REMOTE_PORT': '22222' | |
'HTTP_X_FORWARDED_HOST': 'localhost:1234' | |
'HTTP_PRESTANS_VERSION': '2.0' | |
'mod_wsgi.version': (4, 5, 5) | |
'wsgi.run_once': False | |
'REQUEST_METHOD': 'POST' | |
'mod_wsgi.script_start': '1472083317752656' | |
'wsgi.multiprocess': False | |
'CONTENT_TYPE': 'application/json' | |
'mod_wsgi.application_group': '' | |
'mod_wsgi.script_reloading': '1' | |
'mod_wsgi.request_start': '1472083317751995' | |
'HTTP_ACCEPT_ENCODING': 'gzip, deflate' | |
'mod_wsgi.daemon_start': '1472083317752562'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment