henrik242 <hen...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39875> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com