@pykaso I think that in this case UrlLoader most probably should call Event.COMPLETE with the response that it got from the server. If UrlLoader gets Event.ERROR I think it should mean that it could not even connect to the remote server.
Bad news: there seems to be a bug in Gideros Desktop player, thus it always gets an error callback, but everything works on devices and device players, so you may have to test everything there
I've added the Gideros version of Corona Cloud API to the post.
Comments
if Event.ERROR is called, then it means content was not retrieved, thus there is nothing to provide there
most of the REST APIs return some error content together with 4xx error header.
In my case, I have problem with corona-cloud API. Server sent me what's wrong, but I can't see the message
If UrlLoader gets Event.ERROR I think it should mean that it could not even connect to the remote server.
loader:addEventListener(Event.COMPLETE, onComplete)
loader:addEventListener(Event.ERROR, onError)
http://www.giderosmobile.com/forum/discussion/2930/urlloader-post/p1
Ok, I've found something in completely different place, let me test it
Good news: I was able to make it work
Neutral news: I was lazy and simply used https://github.com/coronalabs/corona-cloud-core/blob/master/corona-cloud-core.lua rewritten a bit for Gideros.
There was a lots of auto replaces, so I may have missed something, etc, I haven't tested all, but what I tested seems to work
Bad news: there seems to be a bug in Gideros Desktop player, thus it always gets an error callback, but everything works on devices and device players, so you may have to test everything there
I've added the Gideros version of Corona Cloud API to the post.
Simply add it to the project, also add json.lu from here: https://github.com/ar2rsawseen/Json
And use it like this:
It looks like a lot of work. Thanks for all the news.
I'm using too theirs corona cloud.lua rewritten a bit for Gideros
The bug in Gideros Desktop player makes me sad because of simple console debug prints
Gideros team, is a chance that it will be fixed soon? |)