> Hello Bjorn,
>
> if I understand well, your restlet-based app listens on port 80, and
> receives requests with the "HTTP_X_FORWARDED_PROTO" header. In this cas,
> you can add a filter which looks at the "org.restlet.http.headers"
> attribute:
> if you are using restlet 2.0, you code looks like
> Form headers = (Form)
> (request.getAttributes(HeaderConstants.ATTRIBUTE_HEADERS));
> headers.getFirstValue("HTTP_X_FORWARDED_PROTO");
>
> Using Restlet 2.1, it looks like :
> Series<Header> headers = (Series<Header>)
> (request.getAttributes(HeaderConstants.ATTRIBUTE_HEADERS));
> headers.getFirstValue("HTTP_X_FORWARDED_PROTO");
>
> Does it anser your question?
>
Thanks for the reply. I had also posted on StackExchange, and initially I got
no response, which is why I posted here, but then I got a very complete
response which agrees with you and works well:
http://stackoverflow.com/questions/9145186/how-to-force-ssl-on-some-urls-using-restlet-on-heroku
Thanks again.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2920179