我的代码:
import requests
url = "https://prueba.com/login"
payload = {"user": "usuariotest","password":"abcd1234@"}
headers = {'Content-Type': 'application/json','user-agent': 'Mozilla/5.0'}
response = requests.request("POST", url, data=payload,headers=headers)
print(response.status_code)
运行此代码时,我得到以下输出:
403