19.01.2017, 21:40
(This post was last modified: 19.01.2017, 21:50 by Erwin van der Zwart.)
Hi Buuuudzik,
Yes you can send vars by the request by using xxx.xxx.xxx.xxx/yourfile.lp?argument1=yourfirstvalue&argument2=yoursecondvalue etcetera and than fetch them in your .lp file with:
or if your values need to be escaped use:
BR,
Erwin
Yes you can send vars by the request by using xxx.xxx.xxx.xxx/yourfile.lp?argument1=yourfirstvalue&argument2=yoursecondvalue etcetera and than fetch them in your .lp file with:
Code:
require('apps')
argument1 = getvar('argument1')
argument2 = getvar('argument2')
or if your values need to be escaped use:
Code:
require('apps')
require('socket.url')
argument1 = socket.url.unescape(getvar('argument1'))
argument2 = socket.url.unescape(getvar('argument2'))
BR,
Erwin