Remove possibility to send json encoded parameters to /rest/getutxos/ to avoid possible DoS scenarios (issue #6192).
The JSON output option is untouched.
Remove possibility to send json encoded parameters to /rest/getutxos/ to avoid possible DoS scenarios (issue #6192).
The JSON output option is untouched.
utACK, I like the new interface
Remove possibility to send json encoded parameters to `/rest/getutxos/` to avoid possible DoS scenarios.
The JSON output option is untouched.
ut ACK - though I don't understand why we care about operators DoS'ing themselves... Nobody should be sending any data, json or binary, straight from remote to the REST interface without sanitizing.
I agree with @jgarzik. The nice side effect of this PR is that it harmonize the input scheme (avoid raw http post data and use /rest/<command>/<parameter:1>/<parameter:n>.json everywhere).
And JSON as input format was a bad decision anyways (as output format it's totally fine IMO).
avoid raw http post data and use /rest/<command>/parameter:1/parameter:n.json everywhere
Exactly. Providing parameters in the URI is what makes this interface more elegant, for simple queries like this.