.htpasswd文件不适用于自定义webbrowser [英] .htpasswd files not working for custom webbrowser

查看:75
本文介绍了.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 class System.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


这篇关于.htpasswd文件不适用于自定义webbrowser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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