Chinaunix首页 | 论坛 | 博客
  • 博客访问: 399103
  • 博文数量: 101
  • 博客积分: 2207
  • 博客等级: 大尉
  • 技术积分: 2508
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-19 20:45
文章分类

全部博文(101)

文章存档

2013年(15)

2012年(86)

我的朋友

分类: LINUX

2012-08-17 11:42:27

 1.curl 向cgi post数据

点击(此处)折叠或打开

  1. curl -'mod=querysql&act=direct&sql=select+u+from+tb_user+where+u%3D%2756798465%27' 'http://10.142.22.44:61001/services/worker.fcgi
2.使用curl下载文件内容

点击(此处)折叠或打开

  1. curl -o SkillInfo.xml http://183.60.64.230/huayuan/backend/xml/SkillInfo.xm
3.使用curl查看网页所使用的web服务器

点击(此处)折叠或打开

  1. curl --head www.sina.com
结果如下

点击(此处)折叠或打开

  1. HTTP/1.0 301 Moved Permanently
  2. Date: Fri, 17 Aug 2012 02:42:17 GMT
  3. Server: Apache
  4. Location: http://www.sina.com.cn/
  5. Cache-Control: max-age=3600
  6. Expires: Fri, 17 Aug 2012 03:42:17 GMT
  7. Vary: Accept-Encoding
  8. Content-Length: 231
  9. Content-Type: text/html; charset=iso-8859-1
  10. Age: 2920
  11. X-Cache: HIT from xd33-75.sina.com.cn
  12. Connection: close


阅读(3706) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~