Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Header information when user clicks on a link  RSS feed

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

I am working on struts 1.2 framework. I need to set a value of 'Accept-Encoding' in the http request header whenever

1) user clicks a link on the page.
2) user pastes the url in the address bar and hits go.

I need this for gZip compression.

can it be done in the back-end or front-end.

I googled a lot, but i could not find any solution for it.

Thanks in advance

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That header is added by the browser, there's nothing the backend can do about it if it's not present. But the browser should do that automatically; are you saying yours doesn't? If so, which are are you using? A quick test using Firefox and Safari shows that it works in general.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!