Server-side technology-Comparison Between ISAPI and CGI
Source: Internet
Author: User
ISAPI Server Extension is a DLL that can be loaded and called by the HTTP server. Internet server extensions are also called Internet server applications. Program(ISA) is used to enhance the functions of servers that comply with the Internet Server API (ISAPI. ISA is called by a browser application and provides similar functions to Common Gateway Interface (CGI) applications.
Advantages of ISAPI server Scaling
You can enter a form and click the submit button to send the data to the Web server and call Isa. ISA can process the information to provide custom content or store the information in the database. Web Server Extensions can dynamically generate Web pages using information in the database, and then send them to the customer's computer for display. Applications can use HTTP and HTML to add other custom functions and provide data to clients.
Server Extensions and filters run in the web server's process space, which provides an effective means to expand the server's functions.
What are the similarities and differences between ISAPI and CGI?
The ISAPI Server Extension provides another option for using the Internet server's Common Gateway Interface (CGI) application. Unlike CGI applications, ISA runs in the same address space of the HTTP server and can access all resources that can be used by the HTTP server. The system overhead of ISA is lower than that of CGI applications because they do not require other processes to be created or to execute communications that need to bypass the process boundary, which is time consuming. If the memory is required by other processes, the extension and filter dll may be uninstalled.
The method used by an Internet client to call ISA through an HTTP server is the same as that used to call a CGI application. For example, a client can call a CGI application like this:
Http: // sample/example.exe? Param1 & param2
It can call an ISA that executes the same function as follows:
Http: // sample/example. dll? Param1 & param2
ISAPI allows multiple commands in a dll, which are implemented as a member function of the chttpserver object in the DLL. CGI requires that each task have a separate name and a URL ing to a separate executable file. Each new CGI request starts a new process, and each different request is contained in their respective executable files. These files are loaded and detached based on each request, so the system overhead is higher than ISA.
The ISAPI filter does not have an equivalent CGI filter. Filters provide the ability to pre-process and post-process all data sent between the client and the server.
What is an ISAPI filter?
The ISAPI filter is a DLL running on the HTTP server that enables ISAPI. It is used to filter the data transmitted back and forth with the server. The filter registers Event Notifications, such as logon or URL ing. When a selected event occurs, the filter is called and you can monitor and change the data (when the data is transmitted from the server to the client or vice versa ). You can use the ISAPI filter to provide enhanced HTTP request records (for example, users logging on to the server), custom encryption, custom compression, or other authentication methods.
What kind of HTTP server is required to run ISAPI?
To host a web site, you must have an internet server that supports Hypertext Transfer Protocol (HTTP. If you select an ISAPI-compliant Web Server (such as IIS and Microsoft Internet Information Service), you can use the server extension DLL to create a small and fast Internet server application.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service