After doing some research work on the HTTP authentication and cookies, I
found it could be better to choice camel-http component[1] to do the job.
It provides you more easy way to set the cookies from the Http header.
[1] http://camel.apache.org/http.html
Willem
Willem Jiang wrote:
Hi,
I just checked the Restlet Request Object , it supports to set the
Cookies on the Request Object. It should be easy to support it in
camel-restlet. Please feel free to create a JIRA[1] for it.
You need to create a new JIRA account if you first use it.
[1]http://issues.apache.org/activemq/browse/CAMEL
Willem
deckerego wrote:
I'm attempting to send a REST message to an endpoint via the Restlet
component. The service requires you to send the session ID that was
set as a
cookie for all subsequent requests - so I first authenticate, receive
an ID
in the Set-Cookie header on the HTTP response, then need to send the
same ID
back with the Cookie header on subsequent HTTP requests.
Camel doesn't appear to support setting the Cookie header explicitly, and
the Restlet API won't let me set it via org.restlet.http.headers as the
Restlet API complains that "Addition of the standard header 'Cookie'
is not
allowed. Please use the Restlet API instead."
Is there any way to send a Cookie via a restlet: component?