Hi all,
I'm having a problem using an HTTP POST request from my GWT client code. It 
works properly in Hosted Mode, and when using Internet Explorer after the 
client code is compiled, but not when running the compiled code in Firefox 3.5. 
According to FireBug, the browser is actually sending an HTTP OPTIONS request 
instead of a POST request. Any ideas what I might be doing wrong? My example 
usage follows.

Request request = new Request(Method.POST, "http://localhost:8080/service";);
request.getClientInfo().getAcceptedMediaTypes().add(new 
Preference<MediaType>(MediaType.APPLICATION_JSON));
new Client(Protocol.HTTP).handle(request, callBack);

Thanks in advance,
Daniel

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

Reply via email to