Hello, I'm having problems getting a "post command" routine which works fine between an onrev cgi file and my Windows desktop standalones to also work fine on Android.
Whereas on the desktop setup the cgi sends back data as expected, on Android nothing seems to be happening. And this happens both on the target device (Android tablet) and in the LC IDE environment itself. Here are the barebones of the stack's mouseUp/urlProgress script and the cgi scripts, with comments interspersed: /////////////////////////////////////////////////// local pURL on mouseUp put "http://kweto.com/cgi-bin/TheCGI.cgi" into tURL put URLEncode(tURL) into tURL put tURL into pURL put "ThePassword" & cr & "theStatement" into tQueryFormat put URLEncode(tQueryFormat) into tQueryFormat post tQueryFormat to URL tURL -- HAVE ALSO TRIED post tQueryFormat to URL(tURL) put it into tSQLqueryResult -- on Windows, "it" contains data, but on Android "it" is empty end mouseUp on urlProgress pUrl, pStatus -- I don't actually understand how to implement urlProgress! if pStatus is "contacted" then answer "Contacted" with "Okay" end if end urlProgress -------------------------------------------------------- /* [the "http://kweto.com/cgi-bin/TheCGI.cgi" cgi file:] */ #!TheLiveCodeEngine -ui on startup -- put $REQUEST_METHOD into buffer put "Hello world" into buffer put "Content-Type: text/plain" & cr put "Content-Length:" && the length of buffer & cr & cr put buffer end startup /////////////////////////////////////////////////// The result from this is that tSQLqueryResult is empty. But oughtn't it to be "Hello world"? I hope I'm overlooking something simple... Thanks for your consideration. -- Nicolas Cueto _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
