如何使用curl下载exe文件,然后windows中的链接不包含exe文件

问题描述

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

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

解决方法

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

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