My workaround is to send current state with url parameters, then if there is nothing to change the HTTP server answers with status code 400. This raises an error at mikrotik side and aborts the script without writing any file or log entry.
This solve is not so good as can be. “Error/not error” is like an “0” or “1” answeer . But if I want to send a data to mikrotik (some updates of parameters) as an answeer of a get-request - I can’t use this solution. In a 6.42 firmware was a good news: “*) fetch - added “output” option for all modes in order to return result to file, variable or ignore it;” May be it is what we all looking for? Does anybody use this option (“output”)? Official Wiki don’t give any instructions about that. How we can use “output” parameter?
It still doesn’t work. Below is the answer from support@mikrotik.com
Would bi nice to have it but …
Hello,
At the moment you can not read this value in variable yet. Unfortunately we have not managed to finalise this new feature and it still requires an improvements.
Please follow our changelog and we will update it when additional feature to fetch tool will be added that allows to read received data.