如何检查URL存在如果URL是http://或https://以外的协议? [英] How to check a URL exists If the URL is of protocol other than http:// or https:// ?

查看:199
本文介绍了如何检查URL存在如果URL是http://或https://以外的协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我找到了一些解决方案,正如他们在https://www.codeproject.com/Questions/255755/How-to-check-if-中提到的那样A-网页URL的使用-ASP网存在 - 。但是给定的解决方案仅支持http://和https://的网址?


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



谢谢。

解决方案

你好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


这篇关于如何检查URL存在如果URL是http://或https://以外的协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆