SMS Gateway 4.4 - User's Guide

Table of ContentsPreviousNextIndex

10. The integrated HTTP server

SMS Gateway features an integrated HTTP server which makes it possible to use a browser and surf in to the SMS server and send a message, display the message queues etc.

Please note that this HTTP server is designed for this specific implementation and does not replace an ordinary web server. If you want to use this as one part of a external or internal web site you should use an ordinary web server for the regular web pages and link to the SMS Gateway HTTP server URL where appropriate. An URL that points directly to the send message form would be http://www.host.dom/sendmessage.

You need to enable the HTTP server in order to use it (see HTTP_ENABLE). The default port the server listens to is 7181, this can be changed using HTTP_PORT in the config file.

If the server is enabled and is using the default port, point your browser to http://hostname:7181.

In order to limit access to the HTTP server you can specify hosts or networks that can access the server, see ACCESS_HTTP. You can also specify users and password using USER_FILE.

Keywords used by the HTTP server:

HTTP_ENABLE, HTTP_PORT, ACCESS_HTTP, USER_FILE

10.1 Customizing the send message form

You can design your own send message form by creating a HTML-document that fulfill the following requirements:

The HTML file must be named SMSDIR/www/sendmessage.html
It must include a form with METHOD=POST and ACTION=/dosendmessage
The recipient field in the form must be named recipient
The message field in the form must be named message

You can also include the fields mt (=message type), legcode (=UCP legitimation code).

Example:

<FORM METHOD=POST ACTION=/dosendmessage>
Recipient:<BR>
<INPUT NAME=recipient><P>
Message:<BR>
<TEXTAREA NAME=message ROWS=4 COLS=40></TEXTAREA><P>
<INPUT TYPE=Submit VALUE="Send message">
</FORM>

10.2 Customizing the send message response (direct connections)

You can design your own send message response form by creating a HTML-document that fulfill the following requirements:

The HTML file must be named SMSDIR/www/sendresponse.html

The directory SMSDIR/www is the document root used by the HTTP server and images used in the documents should be placed in this directory as well.

Table of ContentsPreviousNextIndex