• curl


    curl是一种命令行工具,在发出网络请求后,可以得到和提取数据,显示在"标准输出"(stdout)下。

    curl支持包括HTTP、HTTPS、ftp等众多协议,还支持POST、cookies、认证、从指定偏移处下载部分文件、用户代理字符串、限速、文件大小、进度条等特征。

    -I :只显示请求头信息
     --compressed :要求返回是压缩的形式(using deflate or gzip)

    -e referer:模拟倒链机制;

    [root@conf.d localhost]#curl -I http://172.16.250.89/index.html
    HTTP/1.1 200 OK
    Server: nginx/1.10.2
    Date: Wed, 14 Jun 2017 12:56:25 GMT
    Content-Type: text/html
    Content-Length: 612
    Last-Modified: Tue, 18 Oct 2016 16:37:29 GMT
    Connection: keep-alive
    ETag: "58064fc9-264"
    Accept-Ranges: bytes

     -L:自动跳转到重定向页面

    -s:静默输出

    -o:输出到文件

    [root@forthree ~]# curl -s -L -o /bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
  • 相关阅读:
    戴尔英语09年互联网络投放策略规划书
    haproxy相关
    邮送广告
    python和rails交互应用
    ubuntu搭建邮件服务器
    waitr自动化测试
    ruby写爬虫
    free git svn repositories
    网站开发外包遇到的问题
    电影推荐
  • 原文地址:https://www.cnblogs.com/wzhuo/p/7010959.html
Copyright © 2020-2023  润新知