I want to monitor and conditionally redirect HTTP requests at an OS level

agolangf · · 462 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I am a web developer and have experience with browser plugins, but don&#39;t want to maintain a plugin for every browser that I use. </p> <p>Could you please show me a simple example of listening and then redirecting HTTP requests in golang? Somebody recommended golang for this problem but unfortunately didnt elaborate. </p> <p>Cheers!</p> <hr/>**评论:**<br/><br/>scottjbarr: <pre><p>It sounds like you want a proxy.</p> <p>Could be a fun project.</p> <p>Your proxy examines the request, and rewrites it if it matches your rules. SSL would be an issue unless you want to pull a stunt like Superfish/Avast. (You probably don&#39;t want to so that).</p> <p>The are plenty of proxies out there and I&#39;m sure you could use one to fit your needs, but if you want to write one to scratch your own itch, why not?</p></pre>TheMerovius: <pre><p>You should ask your question only once: <a href="https://www.reddit.com/r/golang/comments/3wpi6w/is_it_possible_to_monitor_and_redirect_http/" rel="nofollow">https://www.reddit.com/r/golang/comments/3wpi6w/is_it_possible_to_monitor_and_redirect_http/</a></p></pre>basiclaser: <pre><p>Hi I couldnt find the original post , thought it had been lost</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

462 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传