put URL - Question
Posted: Thu Feb 10, 2022 6:58 pm
At work I've been using LiveCode to run all kinds of scripts on our web servers, behind the scenes. Today I started playing with LiveCode server - it is installed, and I can do a "Hello world" web page that spits out the current time and date. Hooray!
Question: in a ".lc" web page on my server, can I grab a URL from the web, process it, and spit it back out? In my case, it's an ics file - basically a text file. In regular LiveCode, I can do this:
get URL ("http://site/file.ics")
put it into field "report"
And that works. But in my .lc web page, this does not work:
put URL ("http://site/file.ics") into storeMe
put storeMe
What I'd like to do is grab in ics file off the web, do some parsing, and spit parts of it back out. Is it possible to do? If so, what am I missing? I did a forum search but didn't see anything like this. Any ideas greatly appreciated, as always.
Question: in a ".lc" web page on my server, can I grab a URL from the web, process it, and spit it back out? In my case, it's an ics file - basically a text file. In regular LiveCode, I can do this:
get URL ("http://site/file.ics")
put it into field "report"
And that works. But in my .lc web page, this does not work:
put URL ("http://site/file.ics") into storeMe
put storeMe
What I'd like to do is grab in ics file off the web, do some parsing, and spit parts of it back out. Is it possible to do? If so, what am I missing? I did a forum search but didn't see anything like this. Any ideas greatly appreciated, as always.