wget 提交post请求

来源:互联网 发布:域名过期多久可以抢注 编辑:程序博客网 时间:2024/05/26 20:22

格式:wget --post-data "item1=value1&item2=value2" http://xxx.xxx.com

示例:wget --post-data "username=sg&password=123&content=%e6%b1%89%e5%ad%97&encode=utf8" http://m.5c.com.cn/api/send/index.php

注:content中的内容是汉字,要先用UrlEncode编码

原创粉丝点击