Is LC Indy using an "old Internet library?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

arombauts
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Tue Jul 07, 2009 6:56 am

Is LC Indy using an "old Internet library?

Post by arombauts »

Hello world...

I noticed that with Xojo you can only access https urls. A guy from Xojo told that LC is certainly using old libraries as http is allowed...

Opinion?
André Rombauts, Liège (Belgium).
Retired teacher ( French language, History, English language and Computer science).
LC 9.6.6 (Business / HTML5 edition), testing LC 10 DP1.
Mac OS 11.6.2 Big Sur, MacBook Pro 16" 2019 (and other computers...).
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is LC Indy using an "old Internet library?

Post by bogs »

arombauts wrote: Wed Mar 27, 2019 7:52 pm A guy from Xojo told that LC is certainly using old libraries as http is allowed
Um, I don't think it works that way, at least as pertains to this language.

Https was introduced in vers. 2.5 (yes, it has been around a long time), but that has little to do with how it works.

The main difference between the two, http and https is that one is not encrypted, the other is. Https uses ssl (secure sockets layer), so it provides a bit more security overall.

Http on the other hand just sends the data. It is also worth noting that while a lot of sites have updated to https, not every site has. I'm a little surprised to hear Xojo can't connect to an http site, it was able to the last time I used it, round v14 or so.
Image
arombauts
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Tue Jul 07, 2009 6:56 am

Re: Is LC Indy using an "old Internet library?

Post by arombauts »

The guy from Xojo was refering to App Transport Security.
André Rombauts, Liège (Belgium).
Retired teacher ( French language, History, English language and Computer science).
LC 9.6.6 (Business / HTML5 edition), testing LC 10 DP1.
Mac OS 11.6.2 Big Sur, MacBook Pro 16" 2019 (and other computers...).
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is LC Indy using an "old Internet library?

Post by bogs »

Application Transport Security ? |Apple Developer Forums
[Search domain forums.developer.apple.com/thread/3544] https://forums.developer.apple.com/thread/3544
App Transport Security. App Transport Security (ATS) lets an app add a declaration to its Info.plist file that specifies the domains with which it needs secure communication. ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt.
Which has what, exactly, to do with http or https?
Image
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is LC Indy using an "old Internet library?

Post by FourthWorld »

arombauts wrote: Wed Mar 27, 2019 7:52 pm Hello world...

I noticed that with Xojo you can only access https urls. A guy from Xojo told that LC is certainly using old libraries as http is allowed...

Opinion?
People say all sorts of things. The world uses both HTTP and HTTPS, and LiveCode supports both.

There are some good arguments for continuing HTTP for non-sensitive work:
http://www.loopinsight.com/2018/03/09/google-and-http/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 870
Joined: Fri Feb 06, 2015 4:03 pm

Re: Is LC Indy using an "old Internet library?

Post by LiveCode_Panos »

Hello all,

ATS blocks connection that are considered "insecure", including (but not limited to) http connections.

In LiveCode, on iOS standalones ATS is enabled by default, but you can turn it off *globally* from the iOS standalone settings. Alternatively, you can add "exceptions" URLs in the plist, so as ATS will be enabled globally but will not block connections to these particular URLs.

Hope this help,
Panos
--
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Is LC Indy using an "old Internet library?

Post by sphere »

Http uses port 80 and https 443.

Now i noticed while setting up a VPS with the excellent help of The Perfect Server guides on https://www.howtoforge.com that when you don't have ssl correctly setup and you access a https page with LC 903 that you get a No Access 443 error and that LC crashes.
(this was first with a Centos/nginx setup which was not working ok, the ssl part that is)
I've delete all and rebuild the server using another guide on that website using Ubuntu 18 and apache, setup ssl again and it worked as expected. But i think LC should not crash, but i can't check that anymore since the new VPS setup.
On that VPS i only run a DB with php files as middleware, no CMS(website) on it.

well that was a bit out of scope on this topic :)
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is LC Indy using an "old Internet library?

Post by bogs »

sphere wrote: Thu Mar 28, 2019 12:46 pm Http uses port 80 and https 443.
Heh, well, they default to those, but ports are just ports. While your certainly not going to fail using the default or expected port for any given task, any port can be set to serve any traffic, far as I know, with very few exceptions.

For instance, from Wikipedias article on ports,
Wikipedia wrote: for TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port.
The crashing is certainly an interesting note though, have you reported it?

I still don't get the point of the OP's question, which started as one question, clearly stated, then changed into a completely different question apparently, or was a question taken WAY out of context from this (theoretical) 3rd party.

Now I'm beginning to think someone is blowing smoke (or smoking something that isn't legal-like) :P
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is LC Indy using an "old Internet library?

Post by Klaus »

Xojo is a direct competitor of LC, so what did you exspect?
That the Xojo guy praises and heavily recommends LC?
:D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is LC Indy using an "old Internet library?

Post by bogs »

:oops: I have done that on more than one occasion, and Lc itself can use other languages in instances where the language suits the task better.

But I suspect your post is addressed to the OP, not me :wink:
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Is LC Indy using an "old Internet library?

Post by Klaus »

bogs wrote: Thu Mar 28, 2019 2:08 pmBut I suspect your post is addressed to the OP, not me :wink:
Yes, sure, sorry.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is LC Indy using an "old Internet library?

Post by FourthWorld »

Does Xojo handle both protocols on Android?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Is LC Indy using an "old Internet library?

Post by sphere »

bogs wrote: Thu Mar 28, 2019 1:43 pm The crashing is certainly an interesting note though, have you reported it?
No not yet, i don't think i can judge now if it is meaningfull because i can't replicate it
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is LC Indy using an "old Internet library?

Post by bogs »

sphere wrote: Thu Mar 28, 2019 7:28 pm i don't think i can judge now if it is meaningfull because i can't replicate it
Heh, is it 'real' or is it 'Memorex'! (Old old old commercial :D )
Image
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Is LC Indy using an "old Internet library?

Post by sphere »

bogs wrote: Thu Mar 28, 2019 8:24 pm Heh, is it 'real' or is it 'Memorex'! (Old old old commercial :D )
unknown in the Netherlands i think :mrgreen:
Post Reply