http webrequest拦截 [英] http webrequest interception

查看:93
本文介绍了http webrequest拦截的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何拦截从浏览器发送的httpwebrequest(主要是firefox / IE),然后应用一些代码,然后将其传递回浏览器,以便接收更改后的请求。

-Kevin

How would i go about intercepting a httpwebrequest sent from a browser (firefox/IE mainly) and then applying some code, then pass it through back to the browser for it to receive the altered request.
-Kevin

推荐答案

到目前为止你尝试了什么?
What have you tried so far?


这听起来像是代理服务器的任务。 />
调查创建自己的代理服务器,你会得到很多关于如何做的好主意。
That sounds like the task of a proxy server.
Investigate creating your own proxy servers and you will get lots of good ideas on how to do it.



那个听起来像代理服务器的任务。

调查创建自己的代理服务器,你会得到很多关于如何做的好主意。
That sounds like the task of a proxy server.
Investigate creating your own proxy servers and you will get lots of good ideas on how to do it.



不,我想避免代理服务器,我试图拦截来自浏览器的httpwebrequest调用,例如,我输入 www.google.com 在我的浏览器中,我的程序捕获请求处理它,然后发送httpwebrequest(就好像它是最初发送请求的浏览器。


我试图制定一个计划,b4将时间投入到不合理的事情上。


在此项目中使用VC#w / .NET 2.0。

No, i would like to avoid proxy server, what im trying to do is intercept a httpwebrequest call from a browser for example, i type in www.google.com in my browser and my program catches the request processes it, and then sends the httpwebrequest(as if it were the browser sending the request originally.

I trying to draw out a plan, b4 investing time into to something that isnt rationale.

Using VC# w/ .NET 2.0 for this project.


这篇关于http webrequest拦截的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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