When using LabVIEW for network programming, There are two problems:
1. Web Service cannot be created under Linux(x86) version;
2. The Web Application developed with LabVIEW NXG is deployed on NI Application Server(port 8080), and the loading speed is slow due to the large size of individual files (such as \ Ni-Webvi-resource-v0 \ Deployedrun.min.js, 3.34MB).
In order to solve the above problems, LabVIEW was used to write an HTTP server, and the Web Service Service program based on the basic TCP/IP function was implemented. The program also realized the function of sending static files.
It compresses deployedrun.min.js file with GZIP and returns the compressed content, which improves the loading speed of the page file.