Twisted: 用 getPage 完成 POST 操作

来源:互联网 发布:黑米软件怎么样 编辑:程序博客网 时间:2024/06/06 12:38
看代码:
  postdata = urllib.urlencode({'check_data':check_data})  headers = {'Content-Type':'application/x-www-form-urlencoded'}  getPage(url, method='POST', postdata=postdata, headers=headers)
注意:
  • headers: {'Content-Type': 'application/x-www-form-urlencoded'}
  • urllib.urlencode

0 0