alternative libURL functionality on Server

Are you using LiveCode to create server scripts or CGIs?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
roger
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2
Joined: Thu Jun 16, 2011 10:32 am

alternative libURL functionality on Server

Post by roger » Thu Apr 05, 2012 6:39 pm

Back in January, I asked LiveCode why I can't get the libURL library to function on the Server, even though the documentation says that it is supported. The answer was that the documentation needs to be corrected to show that libURL library is not supported on the Server.

The key current implication for me is that I can't find a way to have the server retrieve data from another server that places cookies.

I'm wondering how I might get around this problem. One naive idea is to build a functional LiveCode Linux standalone, put it on On-Rev, and somehow get the Server script to call the standalone. Is that feasible? Is there another way to get libURL functionality?

Thanks,

Roger

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: alternative libURL functionality on Server

Post by shaosean » Sat May 05, 2012 7:16 am

libURL can be used with the CGI engine, so I will assume it can be used with the server module.. There are a few script changes that are needed to modify the non-working code.. I will look for the version I modified and post the changes needed so you can test it on the server (note: I did this back when there was only the CGI engine)

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: alternative libURL functionality on Server

Post by shaosean » Sun May 06, 2012 6:24 am

Not too certain what I changed in here (i believe the changes were commenting out the custom property lines in the "ulBuildHttpRequest" command) but this is the version of libURL that I was using with the old CGI engine.. To use the library, you will need to insert it in to the back..

Code: Select all

insert the script of stack "libUrl.rev" into back
http://shaosean.tk/runrev/third_party/libUrl.zip

Post Reply

Return to “CGIs and the Server”