从不可替代的网站(C#ASP .NET MVC)中获取响应

发布于 2025-02-06 20:57:41 字数 478 浏览 1 评论 0原文

我不是网络专家,但是对于我的一个项目,我需要确保我要发送请求的网站还活着。一些网站对Ping没有响应;基本上,它们的配置阻止了对Ping请求的响应。
我当时试图 arprative 而不是pinging 而不是pinging网站,但响起只能在pinging网站上使用。本地网络不会超越网络段( this )。 我可以下载网页的全部或一部分,并确认内容是否与以前的状态相同,但是在下载HTML之前,我宁愿有一个更高的确认。

是否还有其他方法可以使该应用程序从网络外的不可匹配的网站中获得响应?

I'm not a network expert, but for one of my projects, I need to ensure that the website I'm sending the request to is alive. Some websites do not respond to ping; basically, their configuration prevents response to ping requests.
I was trying to Arping instead of pinging websites, but Arping only works on the local network and will not go beyond the network segment (this).
I can download the whole or part of the webpage and confirm if the content is the same as the previous state, but I rather have one more level of confirmation before downloading Html.

Is there any other method that enables the app to get a response back from non-pingable websites outside the network?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟酉 2025-02-13 20:57:41

基于常见实践,您可以使用Ping,Telnet和Tracert作为所请求服务器的客户端(此时网站或您要连接的服务),并确保3命令可以启用您的身边。您也可以尝试将其访问到浏览器中。

如果您的API您也可以尝试使用Postman并致电该服务。

好运和愉快的编码:)

Based on common practices you may use ping, telnet and tracert as a client to the requested server (at this point the website or the service you want to connect) and make sure the 3 command are enable to your side. You may also try to access it to your browser.

If its API you may also try to use POSTMAN and call the service.

Goodluck and happy coding :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文