Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server header values

Status
Not open for further replies.

plork123

Programmer
Joined
Mar 8, 2004
Messages
121
Location
GB

Hi all

Can someone show me how i get the server header values using jsp?

Thanks for any help
 
Hi,

do you mean this ?

Code:
  Enumeration headerNames = request.getHeaderNames();
    while(headerNames.hasMoreElements()) {
      String headerName = (String)headerNames.nextElement();
      System.out.println("Header Name :" + headerName);
      System.out.println("Header Value:" + request.getHeader(headerName));
    }

Cheers
Venu
 


Thanks for that

Yes that's what i meant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top