进入需要用户名和密码的页面 [英] Get into a page that needs username and password

查看:120
本文介绍了进入需要用户名和密码的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个小问题:
我正在开发一个应与网站配合使用的程序,但是要进入该页面,我需要在登录页面上输入用户名和密码.
有人可以告诉我该如何实施吗?
我知道页面的地址,即需要密码的页面的地址,但我不知道如何进入下一页(此后的页面带有密码[重定向的页面]).我需要的只是页面的来源.
如果有人有任何建议,那将非常有帮助.

谢谢大家.

Hi everybody,

I have a little question:
I''m working on a program that should work with a site, but in order to get to the page I need to enter username and password on a login page.
Can someone tell me how I should implement this?
I know the address of the page, the one that requires the password, but I don''t know how to get to the next page (the one after that with password [the redirected page]). All I need is the source of the page.
If someone have any suggestion it would be very helpful.

Thank you all.

推荐答案

如果该页面打算由应用程序访问,则它可能支持基本的html授权.您应该调查 HttpWebRequest类.
If the page is meant to be accessed by an application, it probably supports basic html authorization. You should investigate the HttpWebRequest Class.


在我看来,显而易见的路径是托管一个Web浏览器控件,并使用DOM填充用户名/密码,然后按登录按钮.
Seems to me like the obvious path is to host a web brwoser control and use the DOM to populate the username/password, and press the login button.


您提供用户名和密码当然.您如何尝试使用此功能?什么类型的应用程序?还有,您是否拥有相关页面?听起来很可疑.
You supply the username and password of course. How are you trying to use this? What type of application? ANd, do you own the page in question? This sounds very suspicious.


这篇关于进入需要用户名和密码的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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