Tuesday, January 3, 2012

Re: RequestBuilder.sendRequest not working as expected

Aah ok. So what you are saying is, in case of GET i should append it
to the URL itself as part of the query parameters and use setData or
pass it via sendRequest only when using a POST (i.e. sending data via
body).

On Jan 3, 5:47 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> A GET request has no "body", and the first argument to sendRequest
> (equivalent to calling setData) represents the request body. Therefore,
> passing anything other than null or an empty string makes no sense for a
> GET request. Your "workaround" is actually the proper way of doing it.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment