• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding the Parameter in HTTP Request Header  RSS feed

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem like this. How to add a parameter in HTTP Header which goes along with the request.

There are no methods available to set the Header values in the HttpServletRequest object. We can set only the Header values in the HttpServletResponse Object.

Please help me how to solve this.

Thanks in advance

Saravanan.K
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have a problem like this. How to add a parameter in HTTP Header which goes along with the request



Why do you want to add headers in request object?
 
saravanan kanda swamy
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I need to add because my requirement is like that acutally the application is depolyed like this.

Another Appliation --> My Application

The Another Application will send a request to my application in that i need to add the parameter in the HTTP Header

Thanks and Regards,
Saravanan.K
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The Another Application will send a request to my application in that i need to add the parameter in the HTTP Header



can't you use attributes here?

Check out this thread.
 
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you wanna recreate a test environment. I used Jakarta cactus for the same in case you need help regarding the same PM me. You may also like going through the help of cactus which explains in greta detail about all this.
 
Acetylsalicylic acid is aspirin. This could be handy too:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!