Hi,
I think that I already know what is going on here.
Now it is working fine, also from web page via cURL.
I discovered that if I make some "sleep" between executing "submit-session" and "logout" ... SmartTask is executing.
At first my code was like this:
1) login
2) do stuff
3) submit-session
4) logout
Between these steps code was waiting for a valid reply (so for example if there is "message=OK" in reply) ... but soon after valid reply step was triggered.
And by making try and test method ... I've just discovered that after I make some "sleep" between response from step3 (submit-session) and step4 (logout) ... SmartTask is triggered.
So ... for anyone of you that want to use API via cURL and want to have these new SmartTasks ... you already know what to do !
And the most important here is that it actually works ! ... But we have to remember to give SmartTask a little time to trigger before executing session logout 🙂
BTW
I'm preety sure that via mgmt_cli it will work the same ... so if you will have a script where after executing submit-session you will not wait "some time" before executing logout ... it will not trigger SmartTask neither.
It was working for me with mgmt_cli before ... because I was typing this command directly in console (so it took some time after executing command for submit-session ... and before I type and execute command for logout 🙂 ).
Thank you all that made some feedback in this discussion, case closed.
--
Best
Marcin