Tuesday, January 3, 2012

RequestBuilder.sendRequest not working as expected

Hi,

I am trying to use this API by passing the required data and callback
value. I know the data should be in the form
"name1=value1&name2=value2".

The base URL does not have any existing query parameters. Also the
request type is GET.

The API does not throw any exception, it makes the server call but the
query parameters do not reach the server end.

As a workaround i, put these parameters as part of the URL itself as "?
name1=value1&name2=value2", while passing null in sendRequest call.
This worked perfectly fine.

I don't understand why does this not work when passing data as part of
sendRequest API but works if passed directly as part of the URL.

Thanks,
Vicky

--
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