Turn a cURL command into working request code without sending credentials anywhere.
JavaScript is required.