mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #25576: Merge www-form-urlencoded doc from 3.5
This commit is contained in:
commit
a561c038ab
3 changed files with 16 additions and 30 deletions
|
@ -535,10 +535,11 @@ task isn't already covered by the URL parsing functions above.
|
|||
errors=None, quote_via=quote_plus)
|
||||
|
||||
Convert a mapping object or a sequence of two-element tuples, which may
|
||||
contain :class:`str` or :class:`bytes` objects, to a "percent-encoded"
|
||||
string. If the resultant string is to be used as a *data* for POST
|
||||
operation with :func:`~urllib.request.urlopen` function, then it should be
|
||||
properly encoded to bytes, otherwise it would result in a :exc:`TypeError`.
|
||||
contain :class:`str` or :class:`bytes` objects, to a percent-encoded ASCII
|
||||
text string. If the resultant string is to be used as a *data* for POST
|
||||
operation with the :func:`~urllib.request.urlopen` function, then
|
||||
it should be encoded to bytes, otherwise it would result in a
|
||||
:exc:`TypeError`.
|
||||
|
||||
The resulting string is a series of ``key=value`` pairs separated by ``'&'``
|
||||
characters, where both *key* and *value* are quoted using the *quote_via*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue