【问题标题】:How to download an exe file using curl, then the link doesnt contain the exe file in windows如何使用curl下载exe文件,然后链接不包含windows中的exe文件
【发布时间】:2021-06-22 10:11:30
【问题描述】:

如何找到位于https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en(Microsoft Edge 浏览器)的 exe 链接,以便我可以使用 curl 下载 exe 文件?

我尝试了curl https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en,但它不起作用。

【问题讨论】:

    标签: windows curl download


    【解决方案1】:

    您必须指定要对文件内容执行的操作。 在这种情况下保存到一个新文件。

    curl --location --request GET 'https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en' --output foo.exe
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-27
      • 1970-01-01
      • 1970-01-01
      • 2019-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-05
      相关资源
      最近更新 更多