Hello,

Thanks for the quick answer.

Actually, I was doing exactly the same as you replied but it was still not
working. I've found the problem by debugging HTML requests using Chrome
developper tools : it was a SOP problem (completly unrelated to restlet
framework!!). 

Because my application is not hosted on the same server as the REST one, I
have this exception. Actually, the browser applies the rules about the Same
Origin Policy and so it's not allowed to call an external server in
javascript due to potential security problems.

The solution was to use a reverse-proxy server which simulates that the
remote server is hosted on the same server than my client application...
Other solutions are possible :
http://tutorialsjava.com/2009/08/26/call-rest-webservice-directly-from-ext-gwt/

Sorry for having stolen a bit of your time...
Bye, Clement.

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/How-to-add-header-for-http-request-tp5662743p6445479.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2759060

Reply via email to