• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set Request Header in a web application

 
Sheelu sheelu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I followed the below link to add a new field in my HTTP request header.
http://vangjee.wordpress.com/2009/02/25/how-to-modify-request-headers-in-a-j2ee-web-application/

Basically, I created a class that extends "HttpServletRequestWrapper" and a filter class to filter all request. I can see the value in the JSP page. But, when I use a tool "ieHTTpHeader" , which reads the requet parameters in the browser, I'm not finding the values there.

What I'm trying to do is, I need to send the loggedin username in the request header so that, another appliaction running in an iframe can use this value for singlesignon.

Please help !!
Thanks,
Sheelu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65217
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it's working except that a tool isn't showing your faked header? Is that a real problem? The tool is probably just showing you the request as it was originally sent before you wrapped it. Wrapping it doesn't change the request, it just fakes the ability to change it in code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic