打开URL并从C#app连续刷新它 [英] Open URL and refresh it continuously from C# app

查看:107
本文介绍了打开URL并从C#app连续刷新它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何开发一个C#应用程序,在给定URL的情况下在Web浏览器中打开页面,并连续刷新(始终是相同的URL)?

解决方案

听起来像是对我的DOS攻击。


你为什么要这样做?


我假设你说你的事实想要不断刷新它,你没有计划使用该网站,只是为了查看它。如果是这种情况,您可以使用WinForms轻松制作自己的Web浏览器。 WebBrowser控件允许您在其自己的窗口中显示页面。您可以完全控制显示的页面和刷新的时间。


是的,页面只显示图像,我想刷新它以更改显示的图像。但这是客户端的解决方案。


现在我想知道是否有机会在服务器端执行此操作,即:用户在Web浏览器和服务器中打开URL更改要显示的图像并自动刷新页面。这可能吗?我怎样才能做到这一点?感谢。

How can I develop a C# application to open a page in a web browser, given the URL, and refresh it continuously (always the same URL)?

解决方案

Sounds like a DOS attack to me.

Why would you want to do that?


I am assuming by the fact that you say you want to refresh it continuously, you have no plans to USE the site, only to view it. If that is the case, you could just as easily make your own web browser with WinForms. The WebBrowser Control would allow you to display a page in it''s own window. You would have total control over what page is shown and when it refreshes.


Yes, the page is displaying images only and I want to refresh it to change the image displayed. But this is a solution for the client side.

Now I was wondering if there is any chance to do this on the server side, that is: user opens url in web browser and server changes the image to be displayed and refreshes the page automatically. Is this possible? How can I do this? Thanks.


这篇关于打开URL并从C#app连续刷新它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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