This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author henrik242
Recipients apetresc, henrik242
Date 2020-03-06.14:04:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583503463.71.0.298645029811.issue39875@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-03-06 14:04:23henrik242setrecipients: + henrik242, apetresc
2020-03-06 14:04:23henrik242setmessageid: <1583503463.71.0.298645029811.issue39875@roundup.psfhosted.org>
2020-03-06 14:04:23henrik242linkissue39875 messages
2020-03-06 14:04:23henrik242create