(sorry if this double posts- I think I messed up my last reply)
On Oct 23, 4:40 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> The best advice I could give you is to use application/x-www-form-
> urlencoded with your Alfresco Web Script ;-)
Thomas, thanks for your insights into Alfresco, and pointing out the
problems with my code! I am trying x-www-form-urlencoded data now
with Alfresco 2.1.6E - Tomcat, but can't get it to work- no data
appears in args and argsM. Is this how you are doing it? This seems
like it would be easier than messing with multipart , for sure.
String jsonUrlEncodedStr = "json="+
URL.encodeComponent(json.toString());
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url);
rb.setRequestData(jsonUrlEncodedStr);
rb.setHeader("Content-Type", "application/x-www-form-urlencoded
data");
rb.setCallback(new RequestCallback()...);
rb.send();
BTW when I append guest=true to my url, then that appears in args and
argM, which I actually need do for both GET and POST submissions to my
webscripts.
Thanks again
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---