简体   繁体   English

WebClient.DownloadFile方法和HTTPS-这是HTTPS连接吗?

[英]WebClient.DownloadFile method and HTTPS - is it an HTTPS connection?

Cutting out a lot of irrelevant information, the basics are that I have a web address like so: 删除大量不相关的信息,基本是我有一个网址,如下所示:

https://dinglydangs.com/download.dll?request=file&name=dunderdata.csv

I am using WebClient.DownloadFile to , well, download the file. 我正在使用WebClient.DownloadFile to下载文件。 I need to know if, because it is an https link, this method is using an HTTPS connection to download the file. 我需要知道,因为它是一个https链接,所以此方法是否使用HTTPS连接下载文件。 If not, what steps would I need to take to ensure an HTTPS connection is used? 如果没有,我需要采取什么步骤来确保使用HTTPS连接?

Possibly relevant: The link itself is sent to me in an e-mail. 可能相关:链接本身通过电子邮件发送给我。 No actual authentication is required, I simply navigate to the link and the file downloads. 不需要实际的身份验证,我只需导航到链接并下载文件即可。

WebClient will use the protocol specified in the Uri you pass the download method. 您通过下载方法后,WebClient将使用Uri中指定的协议。 You don't have to do anything special to make this happen. 您无需执行任何特殊操作即可实现这一目标。

You can use a tool like Fiddler to verify this, by checking the connections going out from your machine. 您可以使用Fiddler之类的工具通过检查从计算机断开的连接来验证这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM