Page 1 of 1

URGENT HELP with accessing URL from livecode app

Posted: Wed Nov 11, 2015 9:54 am
by aircooled76
Hi Guys,

I have built a scoreboard controller that pulls statistics from a Google Docs Stats Sheet url. The game it is intended for starts in 10 minutes.

My code works fine in my livecode installation that I programmed it in:

test code:

field T2StatURL

Code: Select all

on mouseUp
   
      put 2 into myVar
   
   answer url field "T2StatUrl"
   put url field "T2StatUrl" into statcsv
   put line myVar of statcsv into tline
   answer tline
   
   
   
   
end mouseUp
But when I make a stand alone application the code fails and returns blank values... Happens both on Mac and Windows apps...

Any ideas how I can make this work ASAP?

Thanks

Mike

Re: URGENT HELP with accessing URL from livecode app

Posted: Wed Nov 11, 2015 11:04 am
by aircooled76
OK it looks like I am getting an error
error socket is not open.
Any ideas how to fix?

Re: URGENT HELP with accessing URL from livecode app

Posted: Wed Nov 11, 2015 3:36 pm
by aircooled76
I tried to use code to open port 443 (https port)

Code: Select all

open socket to "443" with message "clientConnected"
Still did not work. Is this a bug in LiveCode?

Re: URGENT HELP with accessing URL from livecode app

Posted: Wed Nov 11, 2015 4:57 pm
by FourthWorld
The "S" in "HTTPS" is for "secure" - try "open secure socket...."

Re: URGENT HELP with accessing URL from livecode app

Posted: Thu Nov 12, 2015 5:47 am
by aircooled76
Hi Guys,

that fixed the problem... thanks FourthWorld... your a champ...

Code: Select all

open secure socket to "443" with message "clientConnected"
Any reason that this works with LiveCode when developing and testing but not when it is stand alone?