E
eunever32
Hi
I notice HttpServletResponse can set headers which I guess would be
received by the browser at the end of the request. I tried setting
HttpServletResponse.setHeader("Authorization", etc) but this wasn't
picked up the the target webserver.
Is it possible for a servlet (or filter) to insert such a header into
the HttpServletREQUEST before the request gets for example proxied to
another server?
I have searched the web but can find no evidence of a
HttpServletREQUEST.setHeader
What I'm describing would be similar to a new URLConnection doing
setRequestProperty
Or apache commons HttpClient GetMethod.addRequestHeader
("Authorization", ..)
Or XMLHttpRequest new ActiveXObject
('Microsoft.XMLHTTP').setRequestHeader
In the same way if a servletfilter or servlet wanted to insert a
header for the next tomcat shouldn't that be possible?
Thanks
I notice HttpServletResponse can set headers which I guess would be
received by the browser at the end of the request. I tried setting
HttpServletResponse.setHeader("Authorization", etc) but this wasn't
picked up the the target webserver.
Is it possible for a servlet (or filter) to insert such a header into
the HttpServletREQUEST before the request gets for example proxied to
another server?
I have searched the web but can find no evidence of a
HttpServletREQUEST.setHeader
What I'm describing would be similar to a new URLConnection doing
setRequestProperty
Or apache commons HttpClient GetMethod.addRequestHeader
("Authorization", ..)
Or XMLHttpRequest new ActiveXObject
('Microsoft.XMLHTTP').setRequestHeader
In the same way if a servletfilter or servlet wanted to insert a
header for the next tomcat shouldn't that be possible?
Thanks