IPC@CHIP® RTOS-PPC – API Documentation
Here is a short description of the IPC@CHIP® Web server.
The IPC@CHIP® web server provides information, e.g. HTML pages, over the Hypertext Transfer protocol (HTTP). The server can be accessed with any normal web browser.
The web server can be configured with the corresponding Webserver CHIP.INI entries.
The server can be suspended/resumed with the BIOS_Server_On_Off() API.
It is possible to upload a file to the Web server. The Upload will be handled using a HTML Form. The form has to include the following field:
DESTINATION-PATH (e.g. "A:\HELLO.EXE") REDIRECT-PATH (e.g. "A:\WEB\SUCCESS.HTM") FILE-CONTENT
The DESTINATION-PATH defines the name and the location where the file will be stored on the IPC@CHIP®'s drive. REDIRECT-PATH links to a file, which will be returned on a successful upload to the Browser. The file must be located on an IPC@CHIP®'s drive. The value of the field FILE-CONTENT will be handled from your Web Browser automatically. It allows the user to choose a local file from the PC's drive using the browse button (which appears with the type "file").
Password and user name for the File Upload are defined in the CHIP.INI (standard: web, web). For example you can use a form like the following one to upload a file to the IPC@CHIP®'s Web server:
<html> <head> <title>FileUpLoad to the IPC@CHIP Web Server</title> </head> <body> <form action="http://192.168.201.4" enctype="multipart/form-data" method="POST"> <p> Choose file from your PC for Upload:<br> Destination Filename: <input type="text" name="DESTINATION-PATH" value=""><br> Linkto: <input type="text" name="REDIRECT-PATH" value=""><br> Local File Path: <input name="FILE-CONTENT" type="file" size="50" ><br> <input type="submit" value=" Absenden "> </p> </form> </body> </html>