且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查URL存在如果URL是http://或https://以外的协议?

更新时间:2023-11-26 18:38:58

你好PM16,


>>如何检查不是http://或https://的网址?


其中您想检查除http(s)以外的URL吗?


WebRequest可以检查HTTP或FTP等协议。


***的问候,


Edward


Hi,

I found some solutions as they have mentioned in https://www.codeproject.com/Questions/255755/How-to-check-if-a-web-url-exists-using-asp-net. But the given solution supports only the url of http:// and https:// ?

How to check for a url which is of other than http:// or https:// ?

Thanks.

Hi PM16,

>>How to check for a url which is of other than http:// or https:// ?

Which URL do you want to check except http(s)?

WebRequest could check protocol such as HTTP or FTP.

Best Regards,

Edward