Home
Analytics
Where to Set Response Header
MarkW
<p>I noticed that when a browser loads a rptdesign, it first does a GET and the response is text/http and then does another GET where the response is text/xml. This text/xml is where the data is at. </p><p> </p><p>I need to set a parameter in this text/xml response header. How can I do this?</p>
Find more posts tagged with
Comments
kclark
<p>It sounds like you're wanting to use a parameter to pass information to your report correct? Can you explain your project a little more for me? Thanks!
</p>
MarkW
<p>Here are my requirements. For all requested BIRT reports, I need to set certain parameters in the HTTP Response Header.</p><p>The reason is this. We have a proxy server that receives http requests from public domain in which the web pages are in a private domain behind a firewall. The proxy forwards these requests to the server behind the firewall. When these pages are sent from the private domain server to the proxy (to be forwarded to the public domain) the proxy first looks for certain HTTP header parameters to see if they are set. If certain parameters are set, there may be some processing done on these pages. Processing may include translating URLs within the webpages to a public URL domain.</p><p> </p><p>To be clear, I am not talking about URL parameters. I am talking about HTTP Response Headers. In a JSP, you generally set this by doing:</p><p> </p><p><% response.setHeader("SomeParam","SomeValue"); %></p><p> </p><p>I have done this in the BIRT DocumentFragement.jsp and the FramesetFragement.jsp, but do not see the header information being passed from server to proxy.</p>
kclark
<p>Thanks for the quick explanation! Let me try and create something on my end to see if I can set the headers then I'll post what I find.</p>