22.06.2022, 15:45
Hello,
I was very interested by this message and by the two scripts it contains: https://forum.logicmachine.net/showthrea...0#pid17210
As I understand, it is possible to a .lp file stored at the path /www/user/filename.lp by running HTTP request http://<LM_IPadress>/user/filename.lp?parameter1=value1&...¶meterN=valueN.
But there are a lot of things I don't understand:
I was very interested by this message and by the two scripts it contains: https://forum.logicmachine.net/showthrea...0#pid17210
As I understand, it is possible to a .lp file stored at the path /www/user/filename.lp by running HTTP request http://<LM_IPadress>/user/filename.lp?parameter1=value1&...¶meterN=valueN.
But there are a lot of things I don't understand:
- What is exactly a .lp file? What would be the difference with a .lua file?
- Is there some documentation about the "getvar" function used to get the parameters passed to the HTTP request?
- If I type http://<LM_IPadress>/user/filename.lp (without any parameter) in my browser, I can't get access to the raw content of the .lp file because it will instead run the file. How can I read the content of the .lp file without executing it?
- Why does the file has to begin with "<?" and end with "?>", what exactly does this syntax mean and what would be the result if we didn't include these flags?
- The file proposed in the thread uses 3 libraries: "apps", "dbenv" and "socket.url". Is there a list of all the librairies available (and documentation for each)?