[issue39875] urllib.request.urlopen sends POST data as query string
henrik242
report at bugs.python.org
Fri Mar 6 09:04:23 EST 2020
henrik242 <henrik at synth.no> added the comment:
But why can't the payload be in the Request object?
>From the api docs:
class urllib.request.Request(url, data=None, headers={}, origin_req_host=None, unverifiable=False, method=None)
data must be an object specifying additional data to send to the server, or None if no such data is needed. Currently HTTP requests are the only ones that use data. The supported object types include bytes, file-like objects, and iterables.
https://docs.python.org/3.7/library/urllib.request.html#urllib.request.Request
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39875>
_______________________________________
More information about the Python-bugs-list
mailing list