Stop displaying the Script Error related to SSL

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
IMRamzi
Posts: 4
Joined: Mon Jun 23, 2014 3:03 pm

Stop displaying the Script Error related to SSL

Post by IMRamzi » Mon Jun 23, 2014 3:58 pm

Hello All,

Since it is my first post here in the RunRev forum, I'd like to wish all the success for everyone.

My need is to know how to avoid displaying an the error message that pop up using the Browser Sampler I downloaded and tested it, and this is the script for the Pop Up windows included

on mouseUp
if "InetBrowser" is not among the lines of the openStacks then
set the altHomeURL of stack "InetBrowser" to "https://domain-name (dot) com/index.html"
go stack "InetBrowser"
end if
end mouseUp


The thing is I receive an error message when I run the Sampler Browser stating the there is an SSL error (since the https web page it self has error),

Is there a code/script that commands the application to ignore any script error to be displayed or am I doing something wrong, since I can not host the files under an other web server.

Thank you

Ramzi

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stop displaying the Script Error related to SSL

Post by Simon » Mon Jun 23, 2014 8:46 pm

Hi Ramzi,
Welcome to the forum:)!

Take a look at "libURLSetSSLVerification" in the dictionary.
You would set it to false in the InetBrowser stack before the revBrowserOpen.
I think that will take care of the problem for you.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

IMRamzi
Posts: 4
Joined: Mon Jun 23, 2014 3:03 pm

Re: Stop displaying the Script Error related to SSL

Post by IMRamzi » Tue Jun 24, 2014 11:39 am

Hello Simon,

Thank you for your courtesy in replying my request.

The thing is I tried to use this command " libUrlSetSSLVerification false" as follows:

on mouseUp
libUrlSetSSLVerification false
if "InetBrowser" is not among the lines of the openStacks then
set the altHomeURL of stack "InetBrowser" to "https://...domain(dot)com/index.html"
go stack "InetBrowser"
end if
end mouseUp


But it did not work


I also, added libUrlSetSSLVerification false to make it looks like this in the InetBrowser Stack script

libUrlSetSSLVerification false
local tBrowserId
put revBrowserOpen(tWindowId, pUrl) into tBrowserId



I am a bit lost here, since I am trying to get it right by logic but I failed. I am doing something wrong here, so a kind of a precise place to insert the command would be kind.

Basically, I did not change any thing inside the original script of the downloaded Browser Sampler, I just by logic tried to insert that command (libUrlSetSSLVerification false) where I thought it should be.

Thank you,

Ramzi

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stop displaying the Script Error related to SSL

Post by Simon » Wed Jun 25, 2014 12:05 am

Hi Ramzi,
Sorry I think I read your original post incorrectly.
Is this the type of error you are getting?
http://quality.runrev.com/show_bug.cgi?id=7721
You will have to sign up to use the site but if it matches what you are seeing please add a comment.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

IMRamzi
Posts: 4
Joined: Mon Jun 23, 2014 3:03 pm

Re: Stop displaying the Script Error related to SSL

Post by IMRamzi » Wed Jun 25, 2014 4:05 pm

Hello,

Thank you again Simon for your kind assistance.

I have made a video and uploaded here:
youtube(dot)com/embed/3y7L210Ktgs?rel=0&vq=hd720

Please copy and paste it in your web browser and change (dot) with the correct character.

I explained there all I did and what I faced in a random example.

Thank you

Ramzi

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stop displaying the Script Error related to SSL

Post by Simon » Wed Jun 25, 2014 6:16 pm

Hi Ramzi,
The first error is the one they talk about in that bug report, but I can't tell if the second error can be included.
You have the libUrlSetSSLVerification false in the correct place (one of them at least) and that doesn't seem to solve the problem.
I didn't notice but was there an error code in that messagebox?

Not sure if I can be of much more help.
You can try;

Code: Select all

put url "https://that_big_long_url.com" into myUrl
set the htmlText of field "myHTML" to myUrl
That may work for you.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

IMRamzi
Posts: 4
Joined: Mon Jun 23, 2014 3:03 pm

Re: Stop displaying the Script Error related to SSL

Post by IMRamzi » Thu Jun 26, 2014 9:40 am

Hello Simon,

Yes, indeed I inserted the command in many places in order to see its impact, but not working at 100%.

The thing is I tried to use many https website, I have noticed sites Like https(dot)Google(dot)com or htttps(dot)youtube(dot)com do not cause this error to be displayed in the final windows application.

Concerning the error messages, the first one is related to showing/displaying Adsense Ads inside the Pop up windows (once I accept it) the ads won't show up, the second one, which is the one that I am trying to hide forever, is related to the SSL certificate itself, I think when the web page that should be displayed in the pop up windows has error/bug..., that script error comes up...

Anyhow, I will keep on trying to see the final outcome.

Thank you for your kind support,

Ramzi

Post Reply