This is my NodeJS (request-promise) for sending SMS via HTTP GET: var options = { method: 'GET', uri: 'http://127.0.0.1:13002/cgi-bin/sendsms', qs: { username: 'foo', password: 'bar', to: '127883327304', from: '12488331359', text: 'Hi } };
This works, but changing to HTTP POST fails. var options = { method: 'POST', uri: 'http://127.0.0.1:13002/cgi-bin/sendsms', form: { username: 'foo', password: 'bar', to: '127883327304', from: '12488331359', text: 'Hi } }; Getting body: 'Authorization failed for sendsms' } }