-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNMP API not working from CLI #4113
Comments
@simonemainardi Questions
|
Yes. Leaving _GET populated will guarantee all REST endpoints to continue working either if you pass them data with the GET as well as if you pass them data with the POST. Special care is only needed by REST endpoint authors to make sure contents of _POST are used when setting stuff. This is fundamental to protect from CSRF.
With reference to this endpoint,
|
- Removed unused google assistant scripts - Cleaned up existing REST calls using _POST["payload"] The _GET["parameter"] element is still present and it will be removed soon
After internal review:
|
Left _GET and removed payload. Now you can complete the rest of the work |
solved |
Hi all, |
Examples at https://www.ntop.org/guides/ntopng/api/rest/examples_v1.html#add-an-snmp-device used to work when called from the CLI. They no longer work as
_POST
doesn't contain parsed parameters, just a payload.Expected behavior is to have _POST populated as now the _GET is populated, thing that happens when the rest API is called from the browser.
The text was updated successfully, but these errors were encountered: