PATH:
usr
/
lib64
/
python2.7
/
Demo
/
cgi
#! /usr/bin/env python """CGI test 2 - basic use of cgi module.""" import cgitb; cgitb.enable() import cgi def main(): form = cgi.FieldStorage() print "Content-type: text/html" print if not form: print "<h1>No Form Keys</h1>" else: print "<h1>Form Keys</h1>" for key in form.keys(): value = form[key].value print "<p>", cgi.escape(key), ":", cgi.escape(value) if __name__ == "__main__": main()
[-] cgi1.pyc
[edit]
[-] cgi1.py
[edit]
[+]
..
[-] README
[edit]
[-] cgi2.pyc
[edit]
[-] cgi3.py
[edit]
[-] cgi1.pyo
[edit]
[-] cgi3.pyo
[edit]
[-] wiki.pyo
[edit]
[-] cgi3.pyc
[edit]
[-] cgi0.sh
[edit]
[-] cgi2.pyo
[edit]
[-] cgi2.py
[edit]
[-] wiki.py
[edit]
[-] wiki.pyc
[edit]