【问题标题】:Curl - load multiple addresses from text fileCurl - 从文本文件中加载多个地址
【发布时间】:2019-03-18 23:38:12
【问题描述】:

我希望 curl 从文本文件中加载地址以执行头部请求。 我正在尝试这种方式:

curl -I -b cookies.txt -D results.txt -A "Mozilla/5.0 " -K mypage.txt

page.txt 里面我是这样写的:

url = "http://example.com/cats http://example.com/birds http://example.com/dogs"

但它不起作用。那么哪里错了?

【问题讨论】:

    标签: html curl http-headers


    【解决方案1】:

    尝试分别指定每个网址,例如:

    url = "http://example.com/cats"
    url = "http://example.com/birds"
    url = "http://example.com/dogs"
    

    我试过了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-27
      • 1970-01-01
      • 2018-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多