I'm looking for a open source .Net HTTP proxy library. Basically I want to develop something like Fiddler (so much lighter with less features).
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I've used the Mentalis Proxy at work: http://www.mentalis.org/soft/projects/proxy/
It's not been touched for a while so there may be a few bugs.
Licence details are here: http://www.mentalis.org/site/license.qpx
回答2:
Mentalis doesn't handle non-ASCII very well. The core proxy engine of Fiddler is called "FiddlerCore," now available as a .NET class library: http://www.fiddler2.com/fiddler/Core/
回答3:
There is URLRewriter.NET, a free open-source component for IIS/ASP.NET.
As the name suggests, it's an URL rewriting component, but it has also proxying capabilities. With a simple line like this in the configuration file
RewriteRule ^(.*) http://www.testsiteXY.com$1 [P]
you could easily use it as proxy.