Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"

OZEKI NG SMS Gateway - Product Guide

URL template Contents | SearchBrowser redirect

Home > Product Manual > Developers Guide > HTTP SMS API > Send message > Multiple SMS


Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

Submitting multiple SMS over HTTP Post

(This document requires Ozeki NG version 3.12.17 or newer)

To get better performance it is a good practice to send several messages with a single HTTP request. You can do this by adding the messagecount parameter to your request and by attaching a sequence number to the end of each HTTP api parameter that relates to the submitted messages.

Example URL Request for HTTP GET recipient0=06203105366&messagetype0=SMS:TEXT&messagedata0=Hello+World& recipient1=06202222222&messagetype1=SMS:TEXT&messagedata1=Second+Message

Example Request for HTTP POST

If you have a large number of messages, you should use HTTP Post to submit your request. You can do this by using the following HTML form:

<form action= method=post><br>
action: <input type=text name=action value=sendmessage><br>
messagecount: <input type=text name=messagecount value=2><br>
username: <input type=text name=username value=admin><br>
password: <input type=text name=password value=abc123><br>
recipient0: <input type=text name=recipient0 value=06203105366><br>
messagetype0: <input type=text name=messagetype0 value=SMS:TEXT><br>
messagedata0: <input type=text name=messagedata0 value='Hello World'><br>
recipient1: <input type=text name=recipient1 value=06202222222><br>
messagetype1: <input type=text name=messagetype1 value=SMS:TEXT><br>
messagedata1: <input type=text name=messagedata1 value='Second Message'><br>
<input type=submit value=OK>

This will produce the following HTTP POST request:

POST /api HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 211


The response for this request will be:

<?xml version="1.0" encoding="utf-8"?>

      <statusmessage0>Message accepted for delivery</statusmessage0>

      <messagedata0>Hello World</messagedata0>
      <serviceprovider0 />

      <statusmessage1>Message accepted for delivery</statusmessage1>

      <messagedata1>Second Message</messagedata1>
      <serviceprovider1 />

More information

Next page: Browser redirect
Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Product Manual > Developers Guide > HTTP SMS API > Send message > Multiple SMS
Legal | Privacy | Terms of use | 2175 | | Login