I want to send http request using node.js. I do:
http = require(\'http\'); var options = { host: \'www.mainsms.ru\', path: \'/api/mainsms/message/se
The question is for Node.js. encodeURIcomponent is not defined in Node.js. Use the querystring.escape() method instead.
encodeURIcomponent
querystring.escape()
var qs = require('querystring'); qs.escape(stringToBeEscaped);