|
HTTP Header Viewer
By Eric Giguere
September 22, 2003
Updated June 2, 2008
This simple tool
lists the HTTP request headers that your browser sends. (Note that it
doesn't show the response headers, you need a separate tool
for that.) It's
a companion to the article
Masquerading
Your Browser that discusses how you can get your web browser to
masquerade as another type of browser.
Your Headers
These are the HTTP headers your browser is sending to EricGiguere.com:
Name | Value |
|
host |
localhost:8077 |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
accept |
*/* |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
user-agent |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
cookie |
fikker-KEPi-Z7Xa=BsBSbwRLNOhAxs6UKNM9KWTshGBARUhu; fikker-2ITi-jkXI=4enQXwhGlJjmPkfWL9j3di8QM5h9hgJJ |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
accept-encoding |
gzip, br, zstd, deflate |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
x-forwarded-for |
3.12.154.121 |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
x-forwarded-host |
twowords.ericgiguere.com |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
x-forwarded-server |
www.ericgiguere.com |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
connection |
close |
![](/images/b.gif;jsessionid=534BF93DEF88F37F5B9FC358AE998F84) |
Other information about your browser:
- IP Address: 0:0:0:0:0:0:0:1
- Hostname: 0:0:0:0:0:0:0:1
In general, each request that you make from your browser includes
information identifying the type of browser (usually referred to
as the user agent), what kind of content the browser accepts,
the acceptable languages, and so on. Note that this viewer does
not show the response headers, the HTTP headers that
a web server sends in response to a request. To see response headers,
use a tool like Rex
Swain's HTTP Viewer.
If you don't like what the browser is sending, maybe you
should switch to the
free Firefox browser!
Header Viewer Source Code
In case you're wondering, here is the code
that prints the headers:
<table width="100%" border="0" cellspacing="0"
cellpadding="8" bgcolor="#EEEEEE">
<tr><td><b>Name</b></td><td><b>Value</b></td></tr>
<tr><td colspan="2" width="100%" height="2" bgcolor="#000000"></td></tr>
<c:forEach var="hname" items="${pageContext.request.headerNames}">
<c:forEach var="hvalue" items="${headerValues[hname]}">
<tr><td valign="top"><c:out value="${hname}"/></td>
<td valign="top"><c:out value="${hvalue}"/></td></tr>
<tr><td colspan="2" bgcolor="#000000" width="100%" height="1"></td></tr>
</c:forEach>
</c:forEach>
</table>
|
As you can see, it's very easy to access the HTTP headers using
the Java Standard Tag Library (JSTL), a powerful tag library
for use with JavaServer Pages (JSP).
If you didn't realize that this page was built
using JSP pages, See
How This
Site Works for the details.
|