Instead of running `curl` in a child process, it would be more efficient to use the native [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) and [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData) available in the JavaScript runtime.