Niall O'Hare wrote:
>
> I am trying to add a http header to the response object, using
> response.AddHeader. ... however when I try to retrieve my headers
> in the next page, the added header isn't there!
>

 The client web browser looks at all the headers you add
to the response. If it's a header from the special limited
set that the browser knows about (from HTTP Spec[1] and
the Cookie spec[2]), then the browser takes some action
based on the header. Otherwise, if the browser doesn't
recognize the header, it just ignores it.

 Cookies are a special case. The browser stores a copy of
the cookie and sends it back to the client with each new
request. Most headers don't work that way, and besides,
it's not really even the same cookie header (Set-Cookie
vs Cookie)


[1] http://www.ietf.org/rfc/rfc2616.txt
    Every programmer doing anything with the WWW should
    have a copy of the HTTP spec. And read it.

[2] http://www.netscape.com/newsref/std/cookie_spec.html
    The original Netscape cookie spec. There's a new
    "version 2", but this should give you the idea.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to