POST请求也就是向服务器提交数据,通常我们用来提交表单数据:

import requests

postdata = {              //定义表单数据
    "username": "abc",
    "password": 123456
}

req = requests.post("http://www.xxxx.com/login", data=postdata)    //使用post()方法发送POST请求
print(req.text)

 

 

 

 

 

 

 

     

相关文章:

  • 2021-11-13
  • 2021-10-21
  • 2022-12-23
  • 2021-09-14
  • 2021-07-03
  • 2021-08-13
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案