IHYPRESS PROGRAMMING
CGI/Python programs with code and output for beginners
classic asp
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Python (CGI Programming) ❯ Environmental Variables
<02>
#!/usr/bin/python import os from platform import python_version print 'Content-type: text/html\n\n'; print '<div style="font-size:0.9em; color:Blue; font-family:sans-serif; margin-bottom:10px;">' print ('Python version: ', python_version()) print '</div>' for param in os.environ.keys(): print '<div style="font-size:0.7em; color:DarkRed; font-family:sans-serif;"><b>%20s</b>: %s</div>' % (param, os.environ[param])
Hergestellt in Deutschland / Made in Germany
('Python version: ', '2.7.5')
HTTP_CF_IPCOUNTRY: US
CONTEXT_DOCUMENT_ROOT: /home2/ihypress/public_html
SERVER_SOFTWARE: Apache
CONTEXT_PREFIX:
SERVER_SIGNATURE:
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
QUERY_STRING:
PATH: /usr/local/bin:/usr/bin:/bin
HTTP_CF_RAY: 8e5f75cdaade2a9d-LAX
TZ: America/Chicago
SERVER_NAME: ihypress.net
REMOTE_ADDR: 143.95.158.41
SERVER_PORT: 80
SERVER_ADDR: 143.95.227.53
DOCUMENT_ROOT: /home2/ihypress/public_html
HTTP_CF_VISITOR: {"scheme":"https"}
HTTP_X_FORWARDED_PROTO: https
SCRIPT_FILENAME: /home2/ihypress/public_html/programming/python/cgi-bin/02.cgi
SERVER_ADMIN: webmaster@ihypress.net
HTTP_CDN_LOOP: cloudflare; loops=1
HTTP_HOST: ihypress.net
SCRIPT_URL: /programming/python/cgi-bin/02.cgi
HTTP_CONNECTION: Keep-Alive
HTTP_CF_CONNECTING_IP: 143.95.158.41
REQUEST_URI: /programming/python/cgi-bin/02.cgi
SCRIPT_URI: http://ihypress.net/programming/python/cgi-bin/02.cgi
GATEWAY_INTERFACE: CGI/1.1
SCRIPT_NAME: /programming/python/cgi-bin/02.cgi
REMOTE_PORT: 25986
REQUEST_SCHEME: http
HTTP_ACCEPT_ENCODING: gzip, br
UNIQUE_ID: Zz71d8hzi4DplpyWHijdAQAAAFY
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland