If I do the following :
<%
response.setHeader("HTTP_test", "test");
String header = request.getHeader("HTTP_test");
out.print("header= " + header);
%>
in a JSP page, I get as output : null !
Any ideas to help me out ?
Thanks a lot,
Carine
[EMAIL PROTECTED]
-----Message d'origine-----
De : Gokul Singh <[EMAIL PROTECTED]>
� : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mercredi 9 ao�t 2000 11:12
Objet : Re: Problem with the Http Header
>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
___________________________________________________________________________
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