atom feed7 messages in org.tigris.restlet.discussRE: Modifying the response headers
FromSent OnAttachments
loic...@belgacom.beJul 29, 2008 8:12 am 
Stephan KoopsJul 29, 2008 8:14 am 
loic...@belgacom.beJul 30, 2008 12:28 am 
Jerome LouvelJul 30, 2008 12:51 am 
loic...@belgacom.beJul 30, 2008 5:02 am 
Jerome LouvelJul 30, 2008 5:30 am 
loic...@belgacom.beJul 30, 2008 8:09 am 
Subject:RE: Modifying the response headers
From:loic...@belgacom.be (loic@belgacom.be)
Date:Jul 30, 2008 8:09:25 am
List:org.tigris.restlet.discuss

Issue opened: http://restlet.tigris.org/issues/show_bug.cgi?id=538

-----Original Message----- From: Jerome Louvel [mailto:cont@noelios.com] Sent: 30 July 2008 14:31 To: disc@restlet.tigris.org Subject: RE: Modifying the response headers

Oh, I see now. Then it's probably a bug! :-)

If you have time to file a bug report that would help: http://www.restlet.org/community/issues

Best regards, Jerome

-----Message d'origine----- De : loic@belgacom.be [mailto:loic@belgacom.be] Envoyé :
mercredi 30 juillet 2008 14:03 À : disc@restlet.tigris.org Objet : RE:
Modifying the response headers

I exactly do what it's my mail, I just add my custom header (not in the list) and then I got all the warnings!

-----Original Message----- From: Jerome Louvel [mailto:cont@noelios.com] Sent: 30 July 2008 09:52 To: disc@restlet.tigris.org Subject: RE: Modifying the response headers

Hi Loic,

When you get this message, you should check on this page the mapping between
HTTP headers and Restlet API properties: http://wiki.restlet.org/docs_1.1/g1/43-restlet/130-restlet.html

Make sure you only use the headers attribute for headers that are not supported
directly by the API.

Best regards, Jerome

-----Message d'origine----- De : loic@belgacom.be [mailto:loic@belgacom.be] Envoyé : mercredi 30 juillet 2008 09:29 À : disc@restlet.tigris.org Objet : RE: Modifying the response headers

Hello,

I'm not sure I understand your answer.

I try to remove the third line ( response.getAttributes().put("org.restlet.http.headers", headers);) and in this
case, the headers was not updated anymore (sounds logical for me)!

So, my issue still exist, when I revcover the headers, add mines and reset the
header in the request, I have a lot of warning in the log!

Regards,

-----Original Message----- From: Step@web.de [mailto:Step@web.de] Sent: 29 July 2008 17:15 To: disc@restlet.tigris.org Subject: Re: Modifying the response headers

Hi Loic,

I think you could just remove the third of your lines.

best regards Stephan

loic@belgacom.be schrieb:

Hello,

I need to add a specific header in the response, I see an exemple on the org.restlet.examples.misc.HeadersTest that I used to create the following code: Series<Parameter> headers = (Series<Parameter>) request.getAttributes().get("org.restlet.http.headers"); headers.add(/HTTP_HEADER_ERROR200_SUPPORT/, String./valueOf/(status.getCode())); response.getAttributes().put("org.restlet.http.headers", headers);

It works, but it generates a lot of warnings, can someone have a look why? 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Host" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "User-Agent" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Accept" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Accept-Language" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Accept-Encoding" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Accept-Charset" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Connection" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders WARNING: Addition of the standard header "Cookie" is not allowed. Please use the Restlet API instead. 29-Jul-2008 16:17:03 com.noelios.restlet.http.HttpConverter addAdditionalHeaders INFO: Addition of the standard header "Cache-Control" is discouraged. Future versions of the Restlet API will directly support it.

Regards,

**** DISCLAIMER **** http://www.belgacom.be/maildisclaimer

**** DISCLAIMER **** http://www.belgacom.be/maildisclaimer