libURLSetSSLVerification and splash stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 2:51 am

So, recently I ran into errors with certificates when trying to GET data from a google spreadsheet.

Reading the forum, I saw that some had to put this before their GET statement:

libURLSetSSLVerification false

So I did that, and indeed I could now get the data when in the IDE and even when in a standalone provided there was no splash stack. But when I build with a splash stack, the GET errors again.

:shock:

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 3:09 am

Update: Not an error, EMPTY. Strange.

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: libURLSetSSLVerification and splash stack

Post by Klaus » Tue Sep 25, 2012 11:15 am

Did you add the LIBURL to your SPLASH standalone stack?
Sounds like you didn't.

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 12:40 pm

Klaus wrote:Did you add the LIBURL to your SPLASH standalone stack?
Sounds like you didn't.
So I place this into the splash?

Code: Select all

libURLSetSSLVerification false
Does it matter where?

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: libURLSetSSLVerification and splash stack

Post by Klaus » Tue Sep 25, 2012 12:50 pm

Hi,

no, I meant, did you add/check the "Internet" library in the standalone builder for your splash stack/standalone?
Leave your scripts as they are.


Best

Klaus

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 12:55 pm

Oh, well looks like time for another lesson for the newbie... what is this library you speak of?

I looked at the settings for my main stack (which creates a standalone that works) and it appears identical to my splash settings.

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: libURLSetSSLVerification and splash stack

Post by Klaus » Tue Sep 25, 2012 1:12 pm

Hi,
teacherguy wrote:Oh, well looks like time for another lesson for the newbie... what is this library you speak of?
well, as the name suggests, this provides all the LIBURLxxx commands and functions like "libURLSetSSLVerification false".
teacherguy wrote:I looked at the settings for my main stack (which creates a standalone that works) and it appears identical to my splash settings.
OK, so you checked "Internet" in the standalone builder on the "General" tab?
If you did, we can only guess what might go wrong on your side...


Best

Klaus

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 5:09 pm

Ah I see thank you. So "Internet" was included under general in my main stack, but not in the splash. So I highlighted it, and built again, but no change. That certainly seemed like it would have been the obvious fix.

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Tue Sep 25, 2012 11:07 pm

I think I've got it, have to do a few more tests. So I was thinking "it's not giving me an error, it's returning empty. So maybe it's just not done."

So I inserted:

Code: Select all

wait 500 milliseconds with messages
And it seems to be OK thus far.

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: libURLSetSSLVerification and splash stack

Post by Klaus » Wed Sep 26, 2012 12:51 pm

Hmm, very strange, but good you got it working :D

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: libURLSetSSLVerification and splash stack

Post by teacherguy » Wed Sep 26, 2012 1:19 pm

It is still inconsistent, I'm convinced that it has something to do with how long it takes to get the data back from google. I'll keep at it.

Post Reply