Skip to content

Tag: node.js

PHP’s openssl_sign Equivalent in Node JS

I am (slowly) learning Node JS and trying to use it in place of a PHP script I have. I need to sign a string I have assembled with SSL to pass on to a curl request. In PHP, this is how I’ve done it: So I’m trying to generate the evuivalent of $signed_signature, but I’m not sure how to

Send Post request to Node.js with PHP cURL

I am trying to send a post request through PHP cURL to my node.js server to then emit a message to the client. The server is working and setup as follows: and my PHP is as follows: The console says that json.message is undefined. Why is it undefined? Answer You’re using querystring.stringify() incorrect…