Livecode Server and https
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Livecode Server and https
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
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
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Livecode Server and https
Hi jihem,
I'm not a liveCode server user but this is how we solve it on desktop/mobile
Don't know if that will work for you.
Simon
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")
?>
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Livecode Server and https
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... ?
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... ?
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Livecode Server and https
Sorry, I really don't know server stuff.
But the dictionary does say it's available for server.
Simon
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!
-
- VIP Livecode Opensource Backer
- Posts: 92
- Joined: Mon Jul 06, 2009 4:53 am
- Location: Bamboo River
Re: Livecode Server and https
There is an outstanding bug in the HTTPS support in LIveCode Server - http://quality.runrev.com/show_bug.cgi?id=14262
Re: Livecode Server and https
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...
Right now, I will try to use the curl command...
-
- VIP Livecode Opensource Backer
- Posts: 9867
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Livecode Server and https
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn