通过自动化登录路由器网页(无用户交互)如何在C#中执行此操作? [英] logging into router Webpage via automation (no user interaction) How to do this in C#?

查看:213
本文介绍了通过自动化登录路由器网页(无用户交互)如何在C#中执行此操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要自动化一个过程,在该过程中,我们登录到路由器页面(密码/ID),然后导航到无线电服务器上的各个页面,以读取和更新HTML页面上的字段.请记住,此处无需人工干预.这些都是通过TCP/IP访问在后台完成的.我已经在Python中使用URLlib和Clientform做到了这一点,并且工作正常.但是,我现在想用C#来做,但是对C#不太了解.
我已经看到了一些示例,但是它们不够详细,不足以让我掌握如何完成此操作.
我会很感激您可以指向我的任何代码片段.

谢谢.

PS.我正在使用Visual Studio 2010编写此应用程序.

Hi,
I have a need to automate a process where we log into a router page, (password/ID), then navigate to the various pages on the radio server, to read and update fields on the HTML pages. Keep in mind, no human intervention here. This is all done in the background via TCP/IP access. I have done this in Python using the URLlib and Clientform, and it works fine. However, I want to now do it in C#, but do not know C# very well.
I''ve seen some examples, but they are not detailed enough for me to grasp how to accomplish this.
I would appreciate any code snippets you can point me to.

Thanks.

PS. I am using visual studio 2010 to write this app.

推荐答案

这里是逐步生成WebBrowser控件,导航到google.com并输入的示例搜索条件,触发搜索.

[
Here''s a step by step example of spawning a WebBrowser control, navigating to google.com, and inputting search criteria, triggering the search.

This[^] should point you in the right direction.


这篇关于通过自动化登录路由器网页(无用户交互)如何在C#中执行此操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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