Page 3 of 3

Re: Sending SMS

Posted: 10 Mar 2020, 11:17
by infosey
Hay you tired to make a test outside HSNM?

I think the problem has origin in the form of the post URL query.

In fact :
{"estado":"error","msg":"Email o contrase\u00f1a incorrectos"}

we think that something is missing or distorted.
I was testing using curl and it works. I captured the http packet sent to the SMS gateway using curl:
Captura_curl.JPG
and also using HSNM:
Captura_HSNM.JPG
I paint in yellow in the first one the authentication that is not sent in the second one using HSNM. The credentials are configured:
Captura_configuration.JPG

Re: Sending SMS

Posted: 10 Mar 2020, 11:27
by HSNMSupport
Using the curl method, how do you specify a username/password?

Re: Sending SMS

Posted: 10 Mar 2020, 11:32
by infosey
Using the curl method, how do you specify a username/password?
Using -u username:password
curl.JPG

Re: Sending SMS

Posted: 10 Mar 2020, 11:57
by HSNMSupport
Using the curl method, how do you specify a username/password?
Using -u username:password
curl.JPG
I've spoken with a developer.
Basic HTTP authentication is not currently supported (as you done with curl -u).
You've to ask your provider if he can receive requests without this kind of authentication.

We are scheduling this kind of authentication in a future version of HSNN.