简体   繁体   English

C#如何在webbrowser控件中访问http referer(和URL)信息

[英]C# How to access http referer (and URL) information in webbrowser control

I am using web browser control in a winforms application(vs2008, C#). 我在winforms应用程序中使用Web浏览器控件(vs2008,C#)。

Is there any way to view http request & response headers on web browser control while navigation to different pages. 有没有办法在导航到不同页面时在Web浏览器控件上查看http请求和响应标头。

How to get "Referer" information of the web request during web browser control's page navigation? 如何在Web浏览器控件的页面导航过程中获取Web请求的“Referer”信息? And how to get the url executed in the background? 以及如何在后台执行url? (For example HTTP Code 200 & 204 the ones you don't see navigated on the webbrowser but are executed, you can see if them with a tool like fiddler)? (例如,HTTP代码200和204,你看不到在webbrowser上导航但执行的那些,你可以看看他们是否使用像fiddler这样的工具)?

Thanks in advance. 提前致谢。

另一种方法是使用FiddlerCore ,我发现它非常方便。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM