• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Basic Doubts in Header

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Marc Peabody
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OUCH! Now I really feel dumb.

Thanks, Kevin!
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic