I am using selenium with browsermob-proxy, ultimately powered by "netty-all", to access a site (outside my control) which offers up enormous headers as part of its authentication process. Proxy fails with a netty error:
io.netty.handler.codec.TooLongFrameException: HTTP header is larger than 16384 bytes., version: HTTP/1.1
I need to remove all such limits from netty-all
jar that my browsermob-proxy depends on, scalability, performance and memory conservation are not relevant in this use case.
Having cloned the repo, I changed:
DEFAULT_MAX_FRAME_SIZE
inWebSocket00FrameDecoder
(io.netty.handler.codec.http.websocketx)HttpObjectDecoder
default constructor inio.netty.handler.codec.http
to Integer.MAX_VALUE
where appropriate.
However, even with these new settings it keeps throwing out "HTTP header is larger than 16384 bytes" in use.
- Where else could this 16384 limit be coming from?
- How does one remove it while retaining full functionality (at the acceptable cost to efficiency/memory usage etc)