Getting HTTP GET arguments in Python
cgi.FieldStorage()
should do the trick for you... It returns a dictionary with key as the field and value as its value.
import cgiimport cgitb; cgitb.enable() # Optional; for debugging onlyprint "Content-Type: text/html"print ""arguments = cgi.FieldStorage()for i in arguments.keys(): print arguments[i].value