This is to share my observations and practices mainly with people using `remotecontrol xmlrpc`, likely developers. `xmlrpc` has a very high overhead, `remotecontrol rest` with "multipart/form-data" header POST requests should be a better option.
First, the REST method can also be used programmatically in scripts or applications fairly easily. I have been sending GET requests using the REST method. Then, I hit "Request-URI Too Long" as I am sending decent sized json data (17KB). Then I tried XML-RPC and realized the frame rate dropped from 58 to 8. The frame rate can be displayed at the status line via `graphics rate true`. Then GPT guided me to try POST with "application/x-www-form-urlencoded" as Content-Type. I got stuck here for a while and found
_parse_post returns "fields" in binary and the program could not parse
args["command"] as what's inside is b"command". Then I refactored my client to POST with "multipart/form-data" and it worked.