Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form> or <isindex>.
- #! /usr/bin/python
- import cgi
- from os import environ
- import cgitb
- cgitb.enable()
- print "Content-type: text/plain"
- print
- print "REQUEST_METHOD:", environ["REQUEST_METHOD"]
- print "Values:"
- f = cgi.FieldStorage()
- for k in f.keys():
- print "%s: %s" % (k, f.getfirst(k))
Add Comment
Please, Sign In to add comment