【问题标题】:Proxy rules doesn't get applied while connecting through Netty通过 Netty 连接时未应用代理规则
【发布时间】:2018-05-14 04:48:54
【问题描述】:

据观察,Netty 不支持通过代理应用的某些规则,因为最初发送的是 HTTP CONNECT 请求。

例如,当我们使用给定规则设置上述代理并向http://example.com/foo/bar/1发送GET请求时,预计会阻止http://example.com/foo/bar/1但允许http://example.com/foo/bar/2

但实际行为是允许两个 URL 并返回 200 OK 响应。但是对于具有相同规则集的同一代理,Mozilla Firefox 可以看到预期的行为。

Netty 版本 - 4.1.19.Final

Java 版本 - 1.8.0_171

【问题讨论】:

    标签: java http proxy netty


    【解决方案1】:

    这个问题给出了解释。

    https://github.com/netty/netty/issues/7930

    【讨论】:

      猜你喜欢
      • 2012-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-24
      • 2010-12-28
      相关资源
      最近更新 更多