Chris,
Put this in the doGet() method of s ervlet
for (Enumeration list = req.getHeaderNames(); list.hasMoreElements();)
{
String item = (String) list.nextElement();
System.out.println("Header Name: " + item);
System.out.println("Header VALUE: " + req.getHeader(item));
}
Peter
----- Original Message -----
From: "Chris Newland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 09, 2000 10:13 AM
Subject: How can I view client HTTP request headers?
> Hi,
>
> I'm writing a standalone java application to test my
> JSP-based service and I'd like to view the HTTP
> request headers that are sent to my web server.
>
> Does anyone have any example code / know of a 3rd
> party product which does this?
>
> Thanks,
>
> Chris
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets