[OpenR8 solution] HttpServer (Web Server)
  1. Chapter1: HttpServer Introduction


The function of HttpServer is to transmit the file to be received, and display the content of the received file through the webpage.


The flow of HttpServer is shown in Fig. 1. Each step is described in detail in the third chapter of this document.


Fig. 1.HttpServer.png

Fig. 1.HttpServer.



  1. Chapter2: HttpServer Folder Introduction


The HttpServer is in the solution folder of OpenR8, as shown in Fig. 2, which contains:


  1. Folder: The data folder, the test file is placed, as shown in Fig. 3.
  2. flow file: HttpServer.flow, as shown in Fig. 3.


Fig. 2.HttpServer location.png

Fig. 2.HttpServer location.


Fig. 3.HttpServer folder.png

Fig. 3.HttpServer folder.




  1. Chapter3: Open and Run HttpServer.flow


There is a “R8_Python3.6_GPU.bat” under “OpenR8 folder”. As shown in Fig. 4. Double-click to execute R8_Python3.6_GPU.bat.


Fig. 4.Run R8_Python3.6_GPU.png

Fig. 4.Run R8_Python3.6_GPU.bat


Please “File” => “Open” => “Enter the solution folder under OpenR8” => “Select HttpServer folder” => “Load HttpServer.flow” , as shown in Fig. 5, Fig. 6.


Fig. 5.Select HttpServer.flow.png

Fig. 5.Select HttpServer.flow.


Fig. 6.Load HttpServer.flow.png

Fig. 6.Load HttpServer.flow.


After loading, press the “Run” to Open Server, as shown in Fig. 7. The URL in the DOS window is the URL to test the file to be retrieved, and the content of the file received from the HttpServer is displayed on the web page.


Fig. 7.Run HttpServer.png

Fig. 7.Run HttpServer.



  1. Chapter4: Open the web page to display the file content received from the HttpServer


Enter the URL of the file to be obtained through the webpage, press the keyboard Enter to send it, and the content of the file received from HttpServer will be displayed on the webpage. See Fig. 8, Fig. 9, Fig. 10 and Fig. 11.


Fig. 8.Enter the file URL to be obtained test.html .png

Fig. 8.Enter the file URL to be obtained (test.html).


Fig. 9.Enter the file URL to be obtained test.png .png

Fig. 9.Enter the file URL to be obtained (test.png).


Fig. 10.Enter the file URL to be obtained test.txt .png

Fig. 10.Enter the file URL to be obtained (test.txt).


Fig. 11.Enter the file URL to be obtained test.mp4 .png

Fig. 11.Enter the file URL to be obtained (test.mp4).



  1. Chapter5: HttpServer.flow – Http_Set


This section focuses on the functionality of the HttpServer.flow process. The following table provides features and content that may be changed to help users quickly find the location they want to change.


Functions that may change by yourself

Changed parameter field name

Change the test port

port: 9000 => Change to the port you want

Change the path to read the file (data)

Root directory: data => change to the path you want to read

Set web page connection time (timeout)

timeout: 30 => Change to the waiting time you want to connect


  1. Httpd_Set:

Set the channel used by the test web page, the number of executions, etc., as shown in Fig. 12.



The success of the web page setting.


Select the object created by [Httpd_Init].


The port to which the web page for testing is connected, fill in 9000 here.


Set the starting position when accessing, fill in “data/” here.


How many webpages can be processed at one time.


You can allow up to how many web pages to wait for a response.


After the webpage exceeds how many seconds, it will not respond, fill in 30 here.


Fig. 12.HttpServer.flow - Httpd_Set.png

Fig. 12.HttpServer.flow - Httpd_Set.



Recommended Article

OpenR8 Community Edition - AI Software for Everyone (Free Download)