Solved

getHeaderNames

Posted on 2006-06-24
5
458 Views
Last Modified: 2008-02-01
I know the function  getHeaderNames
returns the http headers.
What can be the use of it ?
Thank you.
0
Comment
Question by:matthew016
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:leogc
ID: 16974889
getHeaderNames() can be used to find out information like what is the request type that is comming like GET or POST,what is the browser the request is comming from,etc.More details can be found from the link below:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Request-Headers.html
0
 
LVL 9

Author Comment

by:matthew016
ID: 16974899
This still doesn't give me the use of it.
Why one would like to know if it's post or get request, browser, etc .

0
 
LVL 2

Accepted Solution

by:
leogc earned 500 total points
ID: 16974918
one of the reasons for finding out browser type and all is that some of our application code may work in some browser and may not work in some browsers.In such cases u have to detect the browser type to put some other logic as work around.In those cases it may be useful.Also u may need to get header parameters when u want to implement some kind of filters.
0
 
LVL 9

Author Comment

by:matthew016
ID: 16978517
Thank you.
Can U tell me about the filters or maybe a link ?
0
 
LVL 2

Expert Comment

by:leogc
ID: 16981594
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat users xml 7 104
Coldfusion 10 - JSP File Not Found - 404 Error 5 84
'exit' is not valid keyword in java 14 147
Java Exception example issues 11 84
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now