Searched refs:FieldStorage (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Lib/test/ |
D | test_cgi.py | 108 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/ |
D | cgi.rst | 88 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/ |
D | cgi.py | 214 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/ |
D | 3.5.0a2.rst | 356 Fix issue where cgi.FieldStorage did not always ignore the entire preamble
|
D | 3.7.0b5.rst | 346 Add errors param to cgi.parse_multipart and make an encoding in FieldStorage
|
D | 3.5.1rc1.rst | 855 cgi.FieldStorage.read_multi() now ignores the Content-Length header in part
|
D | 3.8.0a1.rst | 2938 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
|
D | 3.7.0a1.rst | 2759 rewrite cgi.parse_multipart, reusing the FieldStorage class and making its 2760 results consistent with those of FieldStorage for multipart/form-data
|
D | 3.5.0a1.rst | 740 cgi.FieldStorage() now supports the context management protocol.
|
/third_party/python/Doc/whatsnew/ |
D | 3.4.rst | 2373 * 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.
|
D | 3.5.rst | 881 The :class:`~cgi.FieldStorage` class now supports the :term:`context manager`
|
D | 3.7.rst | 2308 :class:`~FieldStorage`: for non-file fields, the value associated to a key
|
/third_party/python/Misc/ |
D | HISTORY | 418 - 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 …]
|