Logic Machine Forum
Getting all POST and GET params - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Getting all POST and GET params (/showthread.php?tid=1508)



Getting all POST and GET params - buuuudzik - 31.07.2018

Hi,

do you know how to get all params in .lp files. I am trying to integrate Traccar Client directly to LM but I don't know what kind of params it sends.


RE: Getting all POST and GET params - admin - 31.07.2018

Like this:
Code:
vars = getvars()



RE: Getting all POST and GET params - buuuudzik - 31.07.2018

Thanks, this is exactly what I've meantWink Unfortunately Traccar client sends some data to LM but I haven't any logs so maybe it can't reach:

Code:
<?
require('apps')
_SCRIPTNAME = 'traccar client'

vars = getvars()

log(vars)
print('ok')


I am using this address and by webbrowser all is good but there is no data from Traccar client:
http://ip_address:port/user/traccar.lp

I will try some moreWink