for a little more information.  I am processing header values of one
http header and creating a new header with the same values (writing a
proxy).  I would like to avoid calling addCookie() since that would involve
looking at each header value and then parsing the cookie string, creating a
cookie and then calling addCookie();  Also, there might be multiple
non-cookie values that need to be added to the header.



On Wed, Jun 28, 2000 at 09:52:55AM -0500, Mike Haberman wrote:
> In 2.1 you only have HttpServletResponse.setHeader(name, value)
>    so if you are setting multiple cookies ie name == "Set-Cookie"
>    only the last one is saved
>
> In 2.2 you have HttpServletResponse.addHeader(name, value)
>    which allows you to have multiple header values for the same name.
>
> I am stuck (living in freebsd land) with 2.1.  How can I get
> multiple cookies in the resonse header?
>
> thanks!
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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