Hi,

Can you please send us the code..
If you try to set a header after the response has been commited then the
headers are not set and ignored.
The servlet container may commit the response at its discretion. Hence it is
always better to set the headers before using the OutputStream /
PrintWriter.

regds,
Gokul
----- Original Message -----
From: "Carine Porret" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 09, 2000 1:33 PM
Subject: [SERVLET-INTEREST] Problem with the Http Header


> Hello,
>
> I have a problem concerning Http Headers. I try in my servlet to add an
attribute in the http header (actually the cookie string in order to be able
to get it from an application in another domain) with the following method :
>
> resp.setHeader("HTTP_TEST","test");
>
> but if I print the header, that attribute is not added.
>
> Could anybody help me out on this ?
>
> Thank you so much,
>
> Best Regards,
>
> Carine Porret
> [EMAIL PROTECTED]
>
>
___________________________________________________________________________
> 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