Hi I am planning to put together a website (maybe using a cms) and a gideros app to let registered users update some info on it.
I saw some old post about REST api but it seems that the app needs to open a browser window to interact with the website.
How would you do it? Is there something "better" than REST,which can be used without opening a browser window on the device?
Any other suggestions?
Thank you
Comments
See this post for detail;
http://giderosmobile.com/forum/discussion/1508/post-and-get-methods/p1
Likes: hgy29, antix, pie, totebo
however I have some strange behaviours using it - which could be related.
1) I can't access my php page using https (which should be supported as said in documentation)
but as I said, this may be coming from:
2) If I write the same url by hand and concatenate strings to get it, I have different results: the first works, the latter returns an error from php.
I made a string comparison using string.byte on each char of the strings, and I found out that even if the strings look the same, they have different bytecodes: moreover, if I print out the characters while I am comparing them - they don't look the same! :-O
But they look the same in gideros Output panel if I print the concatenated strings..
This is what I got: here you can find the mismatching characters in my url, I don't know if there are others:
"source_ok" is the character as it should be (written "by hand")
"parsed_bad" is the character as it comes out from string concatenation from gideros (it was originally inserted by hand - so it should be the same as source, but then it is concatenated with others and it "changes"?)
"badchar" is the string.sub(parsedString, i,i)
"okchar" is the string.sub(sourceString, i,i)
@n1cke could this be related to the latest bug you fixed in layout (http://giderosmobile.com/forum/discussion/comment/52790#Comment_52790 ) ?
Any help is appreciated, thank you
Also for SSL, if it doesn't work on player it means that you lack a specific DLL, which isn't provided by QT nor gideros due to potential licensing issues. There is a bug report about this in gideros github...
https://www.dropbox.com/s/y8ixf3d03ygf29t/extra_ssl.rar?dl=0
https://deluxepixel.com
for the records the issue is this one: I forgot about that
https://github.com/gideros/gideros/issues/50
Now my question is: should it work out of the box on android player or there is something else to do?
The same app that works with @Sinistersoft files on windows player, on Android player gets an error (not better defined) as response.
If I set
UrlLoader:ignoreSslErrors()
I can see that my output is error 403 Forbidden
Thank you
p.s. if I use plain http it works, but I'd like to use https
In the case of Android, we are using the (deprecated) Apache HTTP library, which, according to this site: https://stackoverflow.com/questions/5879894/android-ssl-sni-support doesn't support SNI. The best way forward would be to switch to the official android HTTP library...
Likes: antix, pie
while gideros uses apache http library, as a workaround, is there a way to know if a host would work with gideros urlloader https before buying it? What should I ask to the hosting support?
Thank you