Home
last modified time | relevance | path

Searched refs:FieldStorage (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/test/
Dtest_cgi.py108 form = cgi.FieldStorage(fp=fake_stdin, environ=environ, encoding=encoding)
160 fs = cgi.FieldStorage()
168 self.assertRaises(TypeError, cgi.FieldStorage, "not-a-file-obj",
170 self.assertRaises(TypeError, cgi.FieldStorage, "foo", "bar")
171 fs = cgi.FieldStorage(headers={'content-type':'text/plain'})
183 fs = cgi.FieldStorage(environ=env)
214 fs = cgi.FieldStorage(separator=';', environ=env)
268 fs = cgi.FieldStorage(fp=f, environ=env)
283 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
302 fs = cgi.FieldStorage(fp, environ=env, encoding="latin-1")
[all …]
/third_party/python/Doc/library/
Dcgi.rst88 To get at submitted form data, use the :class:`FieldStorage` class. If the form
97 The :class:`FieldStorage` instance can be indexed like a Python dictionary.
102 *keep_blank_values* keyword parameter when creating the :class:`FieldStorage`
110 form = cgi.FieldStorage()
120 :class:`FieldStorage` (or :class:`MiniFieldStorage`, depending on the form
121 encoding). The :attr:`~FieldStorage.value` attribute of the instance yields
122 the string value of the field. The :meth:`~FieldStorage.getvalue` method
127 object retrieved by ``form[key]`` is not a :class:`FieldStorage` or
131 same name), use the :meth:`~FieldStorage.getlist` method, which always returns
140 :attr:`~FieldStorage.value` attribute or the :meth:`~FieldStorage.getvalue`
[all …]
/third_party/python/Lib/
Dcgi.py214 fs = FieldStorage(fp, headers=headers, encoding=encoding, errors=errors,
279 class FieldStorage: class
856 form = FieldStorage() # Replace with other classes to test those
876 form = FieldStorage() # Replace with other classes to test those
/third_party/python/Misc/NEWS.d/
D3.5.0a2.rst356 Fix issue where cgi.FieldStorage did not always ignore the entire preamble
D3.7.0b5.rst346 Add errors param to cgi.parse_multipart and make an encoding in FieldStorage
D3.5.1rc1.rst855 cgi.FieldStorage.read_multi() now ignores the Content-Length header in part
D3.8.0a1.rst2938 Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS attacks harder
2940 ``FieldStorage``.
4809 Add errors param to cgi.parse_multipart and make an encoding in FieldStorage
D3.7.0a1.rst2759 rewrite cgi.parse_multipart, reusing the FieldStorage class and making its
2760 results consistent with those of FieldStorage for multipart/form-data
D3.5.0a1.rst740 cgi.FieldStorage() now supports the context management protocol.
/third_party/python/Doc/whatsnew/
D3.4.rst2373 * The :attr:`~cgi.FieldStorage.file` attribute is now automatically closed when
2374 the creating :class:`cgi.FieldStorage` instance is garbage collected. If you
2375 were pulling the file object out separately from the :class:`cgi.FieldStorage`
2377 entire :class:`cgi.FieldStorage` instance or read the contents of the file
2378 before the :class:`cgi.FieldStorage` instance is garbage collected.
D3.5.rst881 The :class:`~cgi.FieldStorage` class now supports the :term:`context manager`
D3.7.rst2308 :class:`~FieldStorage`: for non-file fields, the value associated to a key
/third_party/python/Misc/
DHISTORY418 - Issue #24764: cgi.FieldStorage.read_multi() now ignores the Content-Length
719 - Issue #23801: Fix issue where cgi.FieldStorage did not always ignore the
2681 - Issue #19097: Raise the correct Exception when cgi.FieldStorage is given an
4142 - Issue #18394: Close cgi.FieldStorage's optional file.
4809 - Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
4859 - Issue #18167: cgi.FieldStorage no longer fails to handle multipart/form-data
10842 - Issue #4953: cgi.FieldStorage and cgi.parse() parse the request as bytes, not
10844 cgi.FieldStorage. Patch written by Pierre Quentel (with many inputs by Glenn
17489 - Bug #1112549, fix DoS attack on cgi.FieldStorage.
26469 cgi -- FieldStorage objects have a getvalue method that works like a
[all …]