Linux curl post data
来源:互联网 发布:化工过程模拟软件 编辑:程序博客网 时间:2024/04/28 01:07
linux下写shell脚本程序
经常会遇到需要post提交东西的时候
这时候用curl是非常方便的
我举一个例子:
curl -A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" \
-e "http://www.xxx.com/poll.shtml" \
-d "2880[]=105&pid=2880&p=最佳&count=1&receipt=1&poll=投票" \
-H "Content-Type:application/x-www-form-urlencoded" \
http://survey.xxx.com/poll/poll.php这里
-A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
的意思就是申明自己用的是windows2000下的ie6的浏览器;
-H 是加http header
-e "http://www.xxx.com/poll.shtml"的意思就是refer是这个页面;
-d后面的参数都是将用post方式提交到服务器去的
最后面的就是将要post到的url地址
这里提到了-A、-e和-d参数,
其实用的比较多的还有
-x(后面用ip:port方式接代理服务器)等等,
这里就不一一列举了,可以参考man curl
- Linux curl post data
- elasticsearch curl post data
- CURL PHP POST raw data
- curl post上传文件的“failed creating formpost data“错误
- Using curl to upload POST data with files
- linux下curl用法post等
- linux用curl命令测试Post请求
- linux curl 发送get、post请求
- curl post...
- curl post
- curl post
- curl post
- Linux终端使用curl来post数据,数据格式为json
- Linux & Mac curl 命令行使用——POST&GET
- linux如何用curl 来post xml 数据
- Linux 下curl模拟Http 的get or post请求
- Linux 下curl模拟Http 的get or post请求。
- Linux 下curl模拟Http 的get or post请求。
- hadoop 文件系统shell命令
- ext常用iconCls 很实用
- 【qq视频录像机软件2013V3.0】聊天视频网络电视录像专家
- Hibernate 3 Formulas(翻译)
- C#中GridView控件的使用
- Linux curl post data
- 武功·小山怡情
- 升级glibc
- cocos2d 引入zlib (for android)
- Leetcode: Surrounded Regions
- poj3481-Double Queue
- [Linux相关] img类型的固件如何解压
- WSAStartup
- JSP页面跳转大全