Solved

getHeaderNames

Posted on 2006-06-24
5
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

627 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