python post请求demo2
来源:互联网 发布:snap.svg.js实例教程 编辑:程序博客网 时间:2024/05/18 01:12
#!/usr/bin/python# coding=utf-8import urllib2values ={}data='''info={"username":"xxxx@foxmail.com","password":"x3d8d1200d278df5664761922ff2cEHBQ","code":"","autologin":false}'''# data = urllib.urlencode(data)req = urllib2.Request("https://www.oshadan.com/validateLogin",data)req.add_header('Host','www.oshadan.com')req.add_header('User-Agent','Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0')req.add_header('Accept','application/json, text/javascript, */*; q=0.01')req.add_header('Accept-Language','zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3')req.add_header('Accept-Encoding','gzip, deflate, br')req.add_header('Content-Type','application/x-www-form-urlencoded; charset=UTF-8')req.add_header('X-Requested-With','XMLHttpRequest')req.add_header('Referer','https://www.oshadan.com/login')req.add_header('Content-Length','115')resp = urllib2.urlopen(req)print resp.read()
0 0
- python post请求demo2
- Python post 请求
- Python Post 请求
- python发送post请求
- python发送post请求
- [python] 发POST请求
- python post请求demo
- python post/get 请求
- python 发送post请求
- python---post请求
- python 发送http post请求
- Python发一个POST请求
- python get post模拟请求
- 用Python写post请求
- Python GET或者POST 请求
- 使用python发起post请求
- python get和post请求
- Python - Http Get Post请求
- 移动地图开发调试点滴
- 极简.NET连接TimesTen程序
- 23种设计模式全解析
- mac air 安装win7双系统
- 点到线段的最短距离算法
- python post请求demo2
- greenDao数据库升级
- work on job and focus on business
- JavaScript Switch
- 背包系统
- 3DES加密认识与使用
- 设置url缓存大小
- 如何成为一名数据科学家?
- 从URL到页面加载完成发生了什么——营养吸收