...and the docs doesn't seem to tell anything about this.
On Tue, Jan 23, 2018 at 11:36 AM, Kasper Nielsen <[email protected]>
wrote:
> 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 <(248)%20833-1359>',
> 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 <(248)%20833-1359>',
> text: 'Hi
> }
> };
>
> Getting body: 'Authorization failed for sendsms' } }
>