Ricardo.a4
IS-IT--Management
Hi!
I install a SMS Gateway in a phone with android.
If a use the CURL in command line, I can send the mensages perfectly.
I try to transform this to use in Foxpro, have no luck.
Anyone can do a magic and help me?
Thanks in advance
Commandline:
curl -X POST -H "Content-Type: application/json" -H "Authorization: f3e09bbd" -d "{"to": "+351987654321", "message": "Teste envio OK"}"
FoxPro:
_comando = 'curl -X POST -H "Content-Type: application/json" -H "Authorization: f3e09bbd" -d "{"to": "987654321", "message": "Teste envio OK"}"'
msg(_comando) ShellExecute(0,"post",_comando,"","",1)
I install a SMS Gateway in a phone with android.
If a use the CURL in command line, I can send the mensages perfectly.
I try to transform this to use in Foxpro, have no luck.
Anyone can do a magic and help me?
Thanks in advance
Commandline:
curl -X POST -H "Content-Type: application/json" -H "Authorization: f3e09bbd" -d "{"to": "+351987654321", "message": "Teste envio OK"}"
FoxPro:
_comando = 'curl -X POST -H "Content-Type: application/json" -H "Authorization: f3e09bbd" -d "{"to": "987654321", "message": "Teste envio OK"}"'
msg(_comando) ShellExecute(0,"post",_comando,"","",1)