Livecode Server and https

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jihem
Posts: 53
Joined: Sun Jul 28, 2013 3:21 pm

Livecode Server and https

Post by jihem » Fri Jan 30, 2015 5:21 pm

Hi,
I wrote and use web services with https. Everything works on the desktop version of LiveCode. I have a working server with Apache/Livecode Server on the same PC. All goes as expected with http but I can't get it working with https.

You can try this...

<?lc
put url("http://www.google.fr")
?>
=> return the google search page

<?lc
put url("https://www.google.fr")
?>
=> return nothing

Regards,
jihem

----

Livecode 7.0.1 Windows 8.1 64bits

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

Re: Livecode Server and https

Post by Simon » Fri Jan 30, 2015 9:40 pm

Hi jihem,
I'm not a liveCode server user but this is how we solve it on desktop/mobile

Code: Select all

<?lc
libURLSetSSLVerification false
put url("https://www.google.fr") 
?>
Don't know if that will 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!

jihem
Posts: 53
Joined: Sun Jul 28, 2013 3:21 pm

Re: Livecode Server and https

Post by jihem » Fri Jan 30, 2015 11:41 pm

Hi,
Thanks for the nice answer. Now, I get this error :

file "C:\Users\Jean-Marc\Desktop\UniServerZ\www\test.lc"
row 2, col 1: Handler: can't find handler (libURLSetSSLVerification)

May be "libURLSetSSLVerification" isn't available on LiveCodeServer... or I need to start a library first... ?

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

Re: Livecode Server and https

Post by Simon » Sat Jan 31, 2015 12:12 am

Sorry, I really don't know server stuff.
But the dictionary does say it's available for server.

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

Peter Wood
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 92
Joined: Mon Jul 06, 2009 4:53 am
Location: Bamboo River

Re: Livecode Server and https

Post by Peter Wood » Sat Jan 31, 2015 2:24 pm

There is an outstanding bug in the HTTPS support in LIveCode Server - http://quality.runrev.com/show_bug.cgi?id=14262

jihem
Posts: 53
Joined: Sun Jul 28, 2013 3:21 pm

Re: Livecode Server and https

Post by jihem » Sun Feb 01, 2015 3:15 pm

Thanks Peter. I add myself to the CC list. I hope this will be resolved soon.
Right now, I will try to use the curl command...

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9847
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Livecode Server and https

Post by FourthWorld » Sun Feb 01, 2015 5:02 pm

curl is good, and so is wget. Different syntax, very similar options. curl is installed on most OS X systems, but wget is not. On Ubuntu and some other Debian-based distros, wget is installed but curl is not. Since all of my servers run Ubuntu, I tend to use wget.

Given that both wget and curl are written in C, you should find overall throughput more efficient than using libURL.

The main advantage of libURL is that it allows us to use one set of calls for all platforms. This can be very useful on clients, but not often needed on servers.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Internet”