.htpasswd文件不适用于自定义webbrowser
问题描述:
Hello All,
我正在使用visual studio 2012的默认浏览器控件制作网页浏览器。
但我想在网站尝试使用.htpasswd文件登录
时进行自定义登录弹出窗口(如果您尝试访问路由器网站,通常会发生这种情况)或者这样的网站)
我的问题是:我不知道网站发送到网络浏览器的请求(如果是请求!!!)
请帮帮我,
Bart de Lange
Hello All,
I''m making a web browser with the default browser control of visual studio 2012.
but i want to make a custom login popup when a website is trying to login
with a .htpasswd file(this usually happens if you try to access you''re router website or such sites)
my problem is: I don''t know the request the website is sending toe the web browser(if it IS a request!!!)
Please help me,,
Bart de Lange
答
请参阅我对该问题的最新评论,关于HTTP响应和HTTP请求。你可以直接使用类System.Net.HttpWebRequest
:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx [ ^ ]。
它可能会帮助您了解正在发生的事情,但我怀疑它会立即帮助您解决问题。我怀疑你的问题是基于对Web词汇的误解,所以你甚至无法解释问题。更多地了解它;这是帮助自己的最佳方式。-SA
Please see my last comment to the question, about HTTP response and HTTP request. You can do it directly using the classSystem.Net.HttpWebRequest
:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].
It might help you to understand what''s going on, but I doubt it immediately help you to solve your problem. I suspect that your problem is based on misunderstanding of how Web words, so you cannot even explain the problem. Learn about it some more; this is the best way to help yourself.—SA