糖尿病康复,内容丰富有趣,生活中的好帮手!
糖尿病康复 > python的post请求中加参数_Python 模拟post请求

python的post请求中加参数_Python 模拟post请求

时间:2021-02-04 08:38:31

相关推荐

python的post请求中加参数_Python 模拟post请求

# coding:utf-8

import requests

url = "/user/signin" # 接口地址

# 消息头数据

headers = {

Connection: keep-alive,

Content-Length: 123,

Cache-Control: max-age=0,

Origin:\,

Upgrade-Insecure-Requests:1,

Content-Type: application/x-www-form-urlencoded,

User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36,

Accept: ext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,

Referer: /account/login?from=,

Accept-Encoding: &

如果觉得《python的post请求中加参数_Python 模拟post请求》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。