HTTP SMS API - Example #2 - Html response

This example shows you the HTML response format when you post two SMS messages and you specify the continue url. The html response format is invoked by adding the "responseformat" parameter to the URL. Note that the recipient parameter contains two telephone numbers separated by a colon. The first telephone numbers is written using the international telephone number format, which means it starts with a plus sign and a country code. The URL also contains a parameter called "continueurl". This parameter carries the urlencoded URL of www.yahoo.com.

Example request:

http://127.0.0.1:9501/api?action=sendmessage&username=admin&password=abc123&
recipient=%2B4412345678,06203105366&messagetype=SMS:TEXT&messagedata=Hello+World&
responseformat=html&continueurl=http%3A%2F%2Fwww.yahoo.com

Example response:

HTTP/1.1 200 OK
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Content-Length: 370
Content-Type: text/html; charset=utf-8
Last-Modified: Wed, 13 Feb 2008 23:32:56 GMT
Server: OzekiNG/3.0.1 Microsoft-HTTPAPI/1.0
Date: Wed, 13 Feb 2008 22:32:56 GMT
<HTML>
<HEAD>
   <TITLE>SMS</TITLE>
<BODY>

Status code: 0<br>
Status message: Message accepted for delivery<br>
Message ID: ZLBTLETB<br>
Recipient: +4412345678<br>
<br>
Status code: 0<br>
Status message: Message accepted for delivery<br>
Message ID: WSDFIRZI<br>
Recipient: 06203105366<br>
<br>
<a href='http://www.yahoo.com'>Click here to continue</a>

</BODY>
</HTML>

More information