Using a Working curl with node-red http-request

Try this...

[{"id":"f8a108bcac1f01d2","type":"inject","z":"10ece3ab98e93683","name":"Click me","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":240,"y":920,"wires":[["880aa0ca5eab8a39"]]},{"id":"880aa0ca5eab8a39","type":"function","z":"10ece3ab98e93683","name":"","func":"//original curl:  \n//\n//curl -s \"https://auth.xxx.com/oauth/token\" -d client_id=xxx-web-app -d grant_type=password -d scope=home.user -d username=\"xxx@xxx.com\" -d password=\"pet-syp-bom\" -d client_secret=\"wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc\"\n\nmsg.method = \"post\";\nmsg.url = \"https://auth.xxx.com/oauth/token\";\nmsg.payload = `client_id=xxx-web-app&grant_type=password&scope=home.user&username=\"xxx@xxx.com\"&password=\"pet-syp-bom\"&client_secret=\"wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc\"`;\nmsg.headers = null;\nmsg.cookies = null;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":920,"wires":[["9a2d79e221a4a227"]]},{"id":"9a2d79e221a4a227","type":"http request","z":"10ece3ab98e93683","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"headers":[],"credentials":{"user":"","password":""},"x":600,"y":920,"wires":[["91953eeb95ea4395"]]},{"id":"91953eeb95ea4395","type":"debug","z":"10ece3ab98e93683","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":780,"y":920,"wires":[]}]

It is an auto-generated flow from a plugin I am working on - so please let me know if it works.