Method for using CGI technology for achieving dynamic web server in no-operation system
An operating system and server technology, applied in the direction of program control devices, etc., can solve the problems of only static web pages, increased cost, power consumption complexity, and no web functions, and achieves clear division, high operating efficiency, and algorithm implementation. simple effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] A method utilizing CGI technology to realize a dynamic web server in a non-operating system device, comprising steps as follows:
[0053] Among them, the implementation of this method includes the following modules: HTTP analysis and package module (http.c), web server general scheduling module (web_server.c), web page file definition module (web_page.c), CGI file analysis and function analysis module (cgi_parser.c) and CGI function implementation module (cgi_fun). The HTTP protocol analysis and group package module are used to analyze the HTTP protocol; the web server total scheduling module is used for the scheduling of the entire web server, including searching for corresponding files and error handling according to the URI; the CGI file analysis and function The CGI file parsing module in the parsing module is used to parse the CGI file, and analyzes the name and parameters of the CGI function embedded in the tag in the CGI file; the CGI function parsing module par...
Embodiment 2
[0068] A method for implementing a dynamic web server using CGI technology in a device without an operating system as described in Embodiment 1, the difference is that the method also includes an AJAX effect realization method: the AJAX effect means that no manual refresh is required The entire page, but the query parameters are automatically sent by the browser, and refreshed and displayed in some areas of the page; the real-time display of the device running time in this method is realized by using AJAX; the javascript file get_time.js contains a timer, and every 1 second to send a query request to the page specified by the web server, and after the web server responds, get_time.js will refresh the result to the specified area of the page in the background.
[0069] The implementation of get_time.js is as follows:
[0070]
[0071]
[0072] The web server file sent by AJAX is defined by the url variable, here it is get_time.cgi, and then the get_time.cgi file will us...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com