05-18-2020, 09:43 PM
(This post was last modified: 05-18-2020, 09:43 PM by remkonoteboom.)
Also, you are embedding the whole command and args in the URL. While this will work for simple calls, it may be better to put the arguments in the data parameter. For example, in python:
Code:
url = 'http://xxxx.com/tactic/fitnessmedia/REST
data = {
'login_ticket': login_ticket,
'method': 'execute_cmd',
'class_name': 'custom.TestCmd',
'args': cmd_kwargs
}
r = requests.post(rest_url, data=data)
ret_val = r.json()