Quickstart — Requests 2.31.0 documentation
https://docs.python-requests.org/en/master/user/quickstart/
WEBIf you want, you can send strings to be received as files: >>> url = 'https://httpbin.org/post' >>> files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')} >>> r = requests.post(url, files=files) >>> r.text { ... "files": { "file": "some,data,to,send\\nanother,row,to,send\\n" }, ...
DA: 16 PA: 78 MOZ Rank: 17