curl

  

  1. curl --noproxy '*' jd.com 所有要访问的url不使用代理,curl后可跟多个url,     *        必须单引号或双引号包围,作为一个字符串传递给curl,否则shell会将其解析为当前目录下的所有文件名
    第一个作为noproxy的参数了.

     

     

  2. curl --location --head --header 'X-Forwarded-For:1.1.1.1'  --header 'X-Real-IP:1.1.1.1' jd.com
    --header custom header to pass to server
    --header 'X-Forwarded-For:IP' 设置上级代理proxy server IP
  3. curl --include --request HEAD jd.com   使用HEAD方法访问
  4. curl --head jd.com

     

     

  5. -s --silent          -S --show-error (常与-s结合使用,显示错误)

     

     

posted @ 2020-06-25 13:46  ascertain  阅读(183)  评论(0)    收藏  举报