Mark,

On 6/2/23 10:57, Mark Thomas wrote:
On 02/06/2023 15:31, Christopher Schultz wrote:
All,

Is it possible to get the /actual/ protocol used for communication with a tomcat server? I'm using AJP/13 and request.getProtocol is returning "HTTP/1.1" which is not 100% surprising.

I'm wondering if the request has anything in it which specifies the "actual" protocol which was used.

HttpServletRequest.getServletConnection().getProtocol()

(requires Servlet 6.0 / Tomcat 10.1.x onwards)

Hey, that's great.

Would it be possible to add something like this in pre-Tomcat 10 in a (possibly hidden) request attribute?

I have a related question about mod_proxy which I'm also using for testing to "merge" Via headers. I can get "Header merge" to work with a Via header, but the ProxyVia directive seems to do absolutely nothing.

I can't even get "ProxyVia Block" to delete Via headers set by a back-end Tomcat server. Any suggestions? My ProxyVia directive is in the <VirtualHost> I'm using for this host.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to