Lines Matching full:form
5 """Spins up a trivial HTTP cgi form listener in a thread.
8 need to call back to the Autotest test case with some form value, e.g.
34 """Implements a form handler (for POST requests only) which simply
37 If the form submission is a file upload, the file will be written
58 form = cgi.FieldStorage(
63 # You'd think form.keys() would just return [], like it does for empty
66 if form:
67 for field in form.keys():
68 field_item = form[field]
72 self.server._url_handlers[path](self, form)
74 # Echo back information about what was posted in the form.
75 self.write_post_response(form)
79 def write_post_response(self, form):
90 self.wfile.write('Got form data:\n')
92 # See the note in do_POST about form.keys().
93 if form:
94 for field in form.keys():
95 field_item = form[field]
105 self.wfile.write('\t%s=%s<br>' % (field, form[field].value))
139 form = cgi.FieldStorage(