Convert your cURL commands to JavaScript code (fetch or axios) and generate cURL commands from HTTP parameters.