• Post Reply Bookmark Topic Watch Topic
  • New Topic

[meta http-equiv] tag  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP, if I use <meta http-equiv="Refresh"..>, then according to html spec, the *servers* will create a corresponding header in the http response message. In this case, I would expect the response header would have an extra header called 'Refresh' along with other headers like Content-type, Content-length, set-cookie, etc. This would just like calling response.addHeader(".."). I tried this with Tomcat 5.0.29 and use some tool to monitor the http message exchanged between tomcat and IE. However, from the monitoring tool (ethereal), I can only see normal http response message without the 'Refresh' header added, although the Refresh action does really happen.

This puzzles me. Which party is the one who really interpret the <meta http-equiv> tag. It seems that it is the browser who understand and react to the tag rather than a new response header being added. Could anyone give me some advice. Thx!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right, it's the browser that reads/interprets the meta tags.
As far as the server is concerned, it's just text.

BTW: Watching traffic with a packet sniffer or the HTTPLiveHeaders plugin to Firefox is a great way to learn the finer points of web development and HTTP.
[ October 19, 2005: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!