import urllib,json,requests
url = 'http://127.0.0.1:8000/account/login'
headers = {}
data = {'username':'asd','pwd':'123456$'}
request = requests.post(url=url, data=data,json=True,headers=headers)
response = request.content.decode()
print(response)
如果请求失败,那么就是跨域问题或者参数错误
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)