Server application programming interface
{{Short description|API used to interface with web servers}}
In computing, server application programming interface (SAPI) is the direct module interface to web servers such as the Apache HTTP Server, Microsoft IIS, and Oracle iPlanet Web Server.
In other words, SAPI is an application programming interface (API) provided by the web server to help other developers in extending the web server capabilities.
Microsoft uses the term Internet Server Application Programming Interface (ISAPI), and the defunct Netscape web server used the term Netscape Server Application Programming Interface (NSAPI) for the same purpose.{{cite web
| url = http://searchsoa.techtarget.com/definition/Netscape-Server-Application-Programming-Interface
| title = Netscape Server Application Programming Interface (NSAPI)
| date = September 2005
| accessdate = 2013-09-22
| website = techtarget.com
| archive-date = 2016-11-16
| archive-url = https://web.archive.org/web/20161116123047/http://searchsoa.techtarget.com/definition/Netscape-Server-Application-Programming-Interface
| url-status = dead
}}
As an example, PHP has a direct module interface called SAPI for different web servers;{{cite web
| url = http://php.net/manual/en/install.general.php
| title = General Installation Considerations
| accessdate = 2013-09-22
| website = php.net
}} in the case of PHP 5 and Apache 2.0 on Windows, it is provided in the form of a DLL file called {{Mono|php5apache2.dll}},{{cite web
|url = http://php.net/manual/en/install.windows.apache2.php
|title = PHP: Apache 2.x on Microsoft Windows
|accessdate = 2013-09-22
|website = php.net
|url-status = dead
|archiveurl = https://web.archive.org/web/20130926122011/http://php.net/manual/en/install.windows.apache2.php
|archivedate = 2013-09-26
}} which is a module that, among other functions, provides an interface between PHP and the web server, implemented in a form that the server understands. This form is what is known as a SAPI.
Different kinds of SAPIs exist for various web-server extensions. For example, in addition to those listed above, other SAPIs for the PHP language include the Common Gateway Interface (CGI) and command-line interface (CLI).{{cite web
| url = http://www.php.net/manual/en/features.commandline.introduction.php
| title = Command line usage: Introduction
| accessdate = 2013-09-22
| website = php.net
| archive-date = 2021-03-21
| archive-url = https://web.archive.org/web/20210321035330/https://www.php.net/manual/en/features.commandline.introduction.php
| url-status = dead
}}
See also
- FastCGI (a variation of the CGI)
References
{{Reflist}}
External links
- [http://httpd.apache.org/docs/2.4/developer/modguide.html Developing modules for the Apache HTTP Server 2.4]
{{Web interfaces|state=collapsed}}
Category:Application programming interfaces
{{Compu-prog-stub}}