来自.net webbrowser控件的http请求 [英] http request from a .net webbrowser control
本文介绍了来自.net webbrowser控件的http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在windows窗体webbrowser控件中获取http请求?如果是的话。
谢谢
解决方案
我在我的自定义System.Web.UI中使用。 WebControls.Panel类那样:
HttpRequest req = System.Web.HttpContext.Current.Request;
否。您可以浏览WebBrowser
并获取/处理文档或使用HttpRequest
来获取文档作为响应。你是什么意思HttpRequest
来自WebBrowser
?
我的意思是来自的httprequest原生的.net webbrowser控件。
Is it possible to get the http request in the windows form webbrowser control? if yes how.
thanks
解决方案
I am using in my custom System.Web.UI.WebControls.Panel class that way:
HttpRequest req = System.Web.HttpContext.Current.Request;
No. Either, you navigate throughWebBrowser
and get/process document or useHttpRequest
to get the document in response. What do you meanHttpRequest
fromWebBrowser
?
i mean httprequest from the native .net webbrowser control.
这篇关于来自.net webbrowser控件的http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文