【发布时间】:2026-01-05 15:45:01
【问题描述】:
我有一个关于在 powershell 上使用 Bitstransfer 以通过 https 下载数据的问题。以下代码在 windows 10 的 powershell 5.5 上运行良好,而在 windows 7 的 powershell 2.2 或 4.4 上运行良好。特别是,问题似乎是使用特定网站的 megatools。 因为即使在 Windows 7 上 https 也能正常工作。
Import-ModuleBitstransfer
Start-BitsTransfer-source "https://en.wikipedia.org/wiki/File:Example.jpg"
如果我尝试从https://megatools.megous.com/ 下载文件,例如https://megatools.megous.com/builds/megatools-1.9.97-win64.zip,它不适用于 https 和 http。
PS C:\Users\user\Desktop> Start-BitsTransfer -source https://megatools.megous.com/builds/megatools-1.9.97-win64.zip
Start-BitsTransfer : Unable to connect to server
On row:1 car:1+ Start-BitsTransfer -source https://megatools.megous.com/builds/megatools-1.9.97- ...+ ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits TransferCommand
PS C:\Users\user\Desktop> Start-BitsTransfer -source http://megatools.megous.com/builds/megatools-1.9.97-win64.zip
Start-BitsTransfer : Unable to connect to server
On row:1 car:1+ Start-BitsTransfer -source https://megatools.megous.com/builds/megatools-1.9.97- ...+ ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits TransferCommand
你能解释一下为什么吗?
谢谢
附:我向 megatools 维护者报告了这个错误,他们说如下:
megatools.megous.com 通过 https 提供服务(TLS 1.2 是协议的最低允许版本,它使用带有主题 alt 名称的证书,服务器使用 SNI)。 nginx服务器配置 ssl_protocols TLSv1.2; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
【问题讨论】:
标签: http powershell https download windows-7