需要编写Web请求拦截器 [英] Need to write web request interceptor

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

问题描述

我想创建一个拦截浏览器Web请求的应用程序(没有任何UI)。

我实际上需要输入一个网址的短名称,例如,我需要为
编写site1 www.site1.home.index.aspx

这些是否可以在.NET中创建这种类型的应用程序?

如果是的话,任何人都可以建议如何开始。

I want to create a application (without any UI) that will intercept browsers web request.
I actually need to type some short name for a web url e.g., I need to write site1 for www.site1.home.index.aspx.
Is these any way to create such type of application in .NET?
If yes can anyone just suggest how to start.

推荐答案

拦截?!  如果有人"拦截"你会怎么想?您的浏览器的网络请求现在?  对我来说听起来像恶意软件。

Intercept?!  How would you feel if someone were "intercepting" your browser's web requests right now?  Sounds like malware to me.

你真的想要完成什么?

你可以使用代理服务器来重定向网址。  为什么不立即使用代理服务器?

You can use a proxy server to redirect urls.  Why not use a proxy server out of the box?


这篇关于需要编写Web请求拦截器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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