Appendix F | HTTPget Program |
You can setup and read the information from the iServer by using the HTTPget program. The following program can be used to read data from the embedded server firmware by using TCP port “1000”. The command sends this string to TCP port
1000 and reads back the response from the same port. Whatever you write to the port goes to the serial port unmodified. Any response from the serial port can be read back from the same socket.
The HTTPget.exe file is used to setup and read information from the iServer. This file is available on our website.
Example to use the HTTPget program:
1.Create a directory C:\iServer\HTTPget
2.Copy HTTPget.exe and readme_features.doc files to this directory.
3.Make sure that you are in this directory and then enter the following test program:
4.For help, execute HTTPget.exe
C:\iServer\httpget>httpget
where: |
|
are parameters needed for the command string | |
*01 | is device address (in hex format) for RS485 |
| communication interface (skip for embedded ethernet |
X01 | read measurement data value (iSeries protocol) |
\r | is the carriage return termination character |
192.168.1.200 | is an IP address |
1000 | is a local port number |
Response: |
|
01X01074.3 |
|
where: |
|
01X01 | is Echo command |
074.3is a display reading of the
In the example above the
50