Solved

getHeaderNames

Posted on 2006-06-24
5
457 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

12 Experts available now in Live!

Get 1:1 Help Now