Try...
RequestBuilder requestBuilder = new
RequestBuilder(RequestBuilder.POST, url);
requestBuilder.setHeader("Content-Type","application/x-www-form-
urlencoded");
requestBuilder.sendRequest("data="+data, new RequestCallback()
{..... });
On Oct 10, 1:25 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> My first thought is: how is anyone going to fix code they can't see, FFS?
>
> :-(
>
> Ian
>
> http://examples.roughian.com
>
> 2008/10/7 apcal <[EMAIL PROTECTED]>
>
>
>
> > No matter what I do, RequestBuilder ALWAYS sends a GET request, even I
> > set the HTTP method to POST! Just to be sure I set the method
> > correctly, I inserted the following line just before sendRequest:
>
> > GWT.log( request.getHTTPMethod(), null );
>
> > And the log window shows 'POST'. Even so, GWT sends a GET request with
> > an empty body (but that is probably because it is setting the method
> > to GET).
>
> > Anyone else had this problem? Any thoughts? Using just GET requests
> > for my application is not an option.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---