Hi everyone,
We use STACK with goemaxima, with goemaxima running on a separate server. Now we would like to perform some load tests. For starters, we would like to bypass moodle and send API requests directly to the Maxima server.
I know that the command line of the Maxima server can be used to execute a statement like diff(sin(x^2),x);. However, I would much rather send requests to Maxima from outside via cURL. Is that possible?
Requests like the following are successful, but always return (%i7)\n(%i8), where "\n" stands for a line break. As far as I know, this indicates that the request was successful, but activated Maxima in an interactive mode instead of returning the result of the computation.
curl -X POST “http://<our-goemaxima-ip>:8080/goemaxima?timeout=10000” \ -H “Content-Type: application/json” \ -d '{ "input": "diff(sin(x^2),x);" }'
Can I adapt this example so that Maxima computes and returns the result for input instead?
I would also be very happy about other approaches for simple load tests. The background to my question are planned tests in which 150 students (engineering sciences; first year of study) will work on a moodle quiz that consists largely of STACK-type questions.
Thanks
Oliver