wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Basic Doubts in Header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Basic Doubts in Header" Watch "Basic Doubts in Header" New topic
Author

Basic Doubts in Header

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I am adding a header to the response. How can I display what are the headers available in the response?
This is a basic thing, which confusing a lot..may be the impact of final mock from HFSJ..


How can I check, what is the content for myheader?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

It looks like you are setting header info to the response but then inspecting the headers of the request.

This is an interesting problem, as response doesn't have a getHeader method.

One possible solution would be to equip your browser with the ability to Display HTTP Headers.


A good workman is known by his tools.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41489
    
  53
Marc, I was going to give you crap, because you linked to an IE tool instead of a Firefox extension - but then I saw that that page links to LiveHttpHeaders. Lucky you


Ping & DNS - my free Android networking tools app
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Originally posted by Ulf Dittmer:
Marc, I was going to give you crap, because you linked to an IE tool instead of a Firefox extension - but then I saw that that page links to LiveHttpHeaders. Lucky you

I was planning to post something for both browsers and this page turned out to have both already.

I think you are the lucky one for reading on before giving me crap and making yourself look dumb. The fleeting thoughts of such sweet victory will I cherish always hereafter.
Kevin DesLauriers
Ranch Hand

Joined: Nov 28, 2005
Posts: 43
Marc and Ulf,

Hate to burst your bubbles but the link for Mozilla does not work. Just a generic search/advertisement page.

Hope this helps: link

Kevin
[ February 14, 2007: Message edited by: Kevin DesLauriers ]
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

OUCH! Now I really feel dumb.

Thanks, Kevin!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Doubts in Header