Flask Reqest environ

 request.environ['  set from below   ']
{'wsgi.multiprocess': False,
'HTTP_X_FORWARDED_SERVER': 'freely-openly.rhcloud.com',
'HTTP_X_FORWARDED_HOST': 'freely-openly.rhcloud.com',
'HTTP_X_CLIENT_IP': '00.00.00.00',
'SERVER_SOFTWARE': 'Werkzeug/0.8.3',
'SCRIPT_NAME': '',
'REQUEST_METHOD': 'GET',
'PATH_INFO': '/',
'SERVER_PROTOCOL': 'HTTP/1.1',
'QUERY_STRING': '',
'werkzeug.server.shutdown': <function shutdown_server at 0x7f303c4c6b18>,
'CONTENT_LENGTH': '',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Fedora; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0',
'HTTP_CONNECTION': 'Keep-Alive',
'SERVER_NAME': '00.00.00.00',
'REMOTE_PORT': 17727,
'wsgi.url_scheme': 'http',
'SERVER_PORT': '8080',
'werkzeug.request': <Request 'http://freely-openly.rhcloud.com/' [GET]>,
'HTTP_X_FORWARDED_PROTO': 'http',
'wsgi.input': <socket._fileobject object at 0x7f303c4ab450>,
'HTTP_DNT': '1',
'HTTP_HOST': 'freely-openly.rhcloud.com',
'wsgi.multithread': False,
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'wsgi.version': (1, 0),
'wsgi.run_once': False,
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f30409df1e0>,
'REMOTE_ADDR': '127.6.57.1',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
'HTTP_X_FORWARDED_FOR': '00.00.00.00',
'HTTP_X_REQUEST_START': 't=1446667986092501',
'HTTP_X_FORWARDED_PORT': '80',
'CONTENT_TYPE': '',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate'}

Comments

Popular posts from this blog

How To Make IoT Messaging with BashShell

How To Make IoT Tweet with Python