11.07.2015 Views

Sending SMS using the Application Programming Interface - MCTel

Sending SMS using the Application Programming Interface - MCTel

Sending SMS using the Application Programming Interface - MCTel

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VIDEO<strong>SMS</strong> HTTP/HTML <strong>Interface</strong> Manual v. 1.2+ strVersion'Send message and get return resultsInet1.RequestTimeout = 120 'xx addedpageresponse = Inet1.OpenURL(strUrl)C++ example//Uses MFC library#include CString strUrl = " http://www.smsfax.com/cgi-bin/sendsms.cgi?";CString strCommand = "Command=Send<strong>SMS</strong>";CString strUserId = "&Username=mctel";CString strUserPwd= "&password=3gap9es3";CString strMsgContent = "&content=hello world";CString strDestNum = "&number=+33607998877";Cstring StrVersion = "&version=1.0";CString strSend = strUrl + strCommand + strUserId + strUserPwd + strMsgContent +strDestNum + StrVersion;//Open internet connection and send messageCInternetSession* ptrInternetSession = new CInternetSession;CHttpFile* ptrFile = (CHttpFile*) ptrInternetSession->OpenURL(strSend);//Get return results from ptrFiledelete ptrInternetSession;delete ptrFile;Data securityFirewalls pour l'accès au site www.smsfax.comThe protocol used is <strong>the</strong> standard HTTP/HTML protocol on <strong>the</strong> Web port 80. It will <strong>the</strong>n notbe blocked by all firewalls configured to allow outgoing access to Web services, and must notbe blocked if a proxy is used to access <strong>the</strong> Web (in this case, always make <strong>the</strong> requests withNoCache mode enabled).If needed, configure your company firewall in order to allow outgoing TCP/IP calls to <strong>the</strong>www.smsfax.com address on port 80.User Au<strong>the</strong>nticationThe standard user au<strong>the</strong>ntication use username/password mechanism:• By default (see below), those identifiers are not encrypted.Monaco Telematique MCTEL 27 July 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!