
Chapter 9 – HTTP Server
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 102
Monitoring and Configuring the Host
through a Browser
If you have successfully completed the preceding configuration sections and completed the uploading, you are now
ready to View, Monitor, and Configure the Host through the Web browser.
In order to view the device home page, enter the IP Address of the IP module into the URL Address bar.
Example: http://192.168.2.1
The IP address 192.168.2.1 corresponds to the IP address of the IP module.
Depending upon the configuration selected under set ip http-page <default/serial>, the appropriate page is
displayed.
• If the http-page is set to default, the index.HTML page displays or
• If the http-page is set to serial, the OEM’s customized Web page http-s0.HTML displays.
Technical Information
This section describes additional details and implementation suggestions related to the IP module.
Parameter Value Display on the Fly
The HTML file can be any valid HTML file. However, it should be ensured that the parameter values, which
are to be replaced, are qualified with %P<n>%.
Example:
<HTML>
---------
--------
Efficiency <input type="text" name = "P1" value = "%P1%">
----------
</HTML>
In the above code segment, when the browser requests a page, the %P1% is replaced with Parameter P1's
value. This value is extracted from the serial device parameter file (http-host-param).
Parameter Value Manipulation from the Browser
To update a parameter from the browser, key in the new values and click the Submit button.
The Submit button in turn invokes the POST command as shown below.
<form method = "POST" name= "formUPS" ACTION="/cgi-bin/post-query">
Post-Query is a built-in CGI script that will parse the new values set by the browser and replace them in the
http-host-param file.
Should you need to update the newly set parameters in the http-host-param file, include the /cgi-bin/post-
query path in the ACTION field of your HTML file. The rest is set by the Post-Query script.
Serial Device Parameter Updating Process
The serial device probes/polls the IP module for newly configured parameter values from the browser.
Kommentare zu diesen Handbüchern