如何进行包含开放文件的发帖请求?

2024-09-29 23:31:29 发布

您现在位置:Python中文网/ 问答频道 /正文

你知道吗Мy查询产生以下错误

{“ExportedDataFile”:[“ExportedDataFile字段是必需的。”]}

import requests

files = {'file': open('33332815-2019-04-191419.xml', 'rb')}
payload = {'ExportedDataFile': files, 'Token': 'test'}
r = requests.post("http://????", data=payload)
print(r.text)

Tags: testimporttokenhttpdata错误filesxml

热门问题