Python发布请求针对以下发布请求返回422错误

时间:2020-10-27 02:48:25

标签: python post request

我试图在python中执行一个简单的POST请求,但是作为响应,我得到了错误422。执行此请求的正确方法是什么?

formData = {'authenticity_token': 'SECRET KEY', 'price': '100', 'button': ''}
x = requests.post('https://theshownation.com/mlb20/items/cfbe0f33f88e0a053237ad6205530602/create_buy_order', params=formData)
print(x)

0 个答案:

没有答案