《专业英语》期末考试课程论文微软设计应用班级:13级信息管理与信息系统1班学号:姓名:朱敦达分数:2015年12月25日微软设计应用CGI具有扩充性能和克服的问题的能力,是微软公司开发的一种新的方式开发建设规模的应用。
这就是所谓的替代high performance互联网服务器应用程式接口(ISAPI)。
代替了housing功能编程档案,利用DLLs代替了复杂的编写程序的过程,同其它软件比较DLLs具有很大的优势,在性能上也有所扩充。
Introduction to DevelopmentTo overcome the performance and scalability problems that CGI brings, Microsoft developed a new way for developers to build scalable applications. This high performance alternative is called the Internet Server Application Programming Interface(ISAPI). Instead of housing functionality in executable files, ISAPI uses DLLs. Using DLLs instead of executable programs has some definite performance and scalability advantagesISAPI在功能上有所扩展,它可以向用户提出要求,使单一ISAPI扩展执行多种任务。
就像CGI的例子一样, ISAPI再使用时必须使用目录执行许可认证, 或利用DLL下载客户端,而不是直接在服务器上使用,ISAPI扩展通常用来处理用户的要求做出回应,这和使用CGI的方式非常类似。
The ISAPI extension could also be called with arguments that will allow a single ISAPI extension to perform multiple tasks. Just as in the CGI example, the directory must have execute permissions enabled, or the DLL will be downloaded to the client rather than run on the server. ISAPI extensions are typically used to process client requests and output a response as HTML, which is very similar to the way CGI programs are used.凡是直接与CGI重复的申请必须经过ISAPI的过滤器。
但是,ISAPI过滤器没有明确的要求,相反,它们被称为to certain针对IIS的生活事件要求,发展商在任何一种称为ISAPI过滤器的事件发生后,才能提出要求,具体发生事件如下:1.当服务器发生客户邀请事件时。
2.当客户使用真实服务器时。
3.当服务器从逻辑URL绘制物理URL图形时。
4.在原始数据由客户发送给服务器时。
5.在原始数据由客户发送到服务器,但在服务器程序运行之前时。
6.当信息服务器原数据时。
7.在协议结束时。
ISAPI filters perform a function that can’t be directly duplicated with CGI applications. ISAPI filters are never explicitly called; instead, they are called by IIS in response to certain events in the life of a request. The developer can request that an ISAPI filter be called whenever any of the following events occur:1.When the server has preprocessed the client headers2.When the server authenticates the client3.When the server is mapping a logical URL to a physical URL4.Before raw data is sent from the client to the server5.After raw data is sent from the client to the server but before the server processes it6.When the server logs information7.When the session is ending作为过滤器,ISAPI过滤器只通知要求,然后服务器就会尽快处理要求。
其中较常见的是给用户提供认证功能。
另一个是使用HTML修改文本,然后服务器会自动将其送交给客户端。
举个例子,可以用ISAPI过滤器的背景颜色来改变每一个页面的颜色,这是由于ISAPI过滤器几乎是共同的ISAPI扩展,但是由于本文的篇幅有限,所以,我们不能在这本书中进一步介绍它,如果你想了解更多的关于ISAPI扩展方面的知识,你可以看看我的书的服务器应用这一章节的内容,ISAPI几个具体的起点职务,必须由DLL输出,同时利用这些切入点, IIS可以负荷的DLL,功能要求它执行, 在经过必要的参数,接收数据和写回浏览器。
ISAPI只需两起实施这些功能点切入点。
As with any filter, ISAPI filters should request only the notifications it requires and process them as quickly as possible. One of the more common uses of ISAPI filters is to provide custom authentication. Another use is to modify the HTML that will be sent to the client. For example, an ISAPI filter could be used to change the background color of each page. Because ISAPI filters aren’t nearly as common as ISAPI extensions, I won’t cover them any further in this book. If you want to learn more about ISAPI extensions, you can check out my book Inside Server-Based Applications (Microsoft Press, 1999).ISAPI specifies several entry-point functions that must be exported from the DLL. Using these entry points, IIS can load the DLL; call the functions that it implements, passing in parameters as required; and receive the data to write back to the browser. ISAPI requires only two entry-point functions to be implemented these entry points, IIS can load the DLL; call the functions that it implements, passing in parameters as required; and receive the data to write back to the browser. ISAPI requires only two entry-point functions to be implemented一个更好的方法:动态页面。
如果你想知道我们为什么要编注一本关于在程序应用的书,那么我们就会告诉你,其实它的答案在于执行的具体细节及其前身, 动态页面(ASP)。
在这之前,我们需要了解ISAP与Iadeeper的联系,只有这样才能了解。
A Better Solution: Active Server PagesIf you’re wondering why we’ve dwelt on the alternatives to in a book about programming , the answer lies in the details of the implementation of and its predecessor, Active Server Pages (ASP). Understanding ISAPI is required for adeptunderstanding of ASP and thus .IIS2.0是WindowsNT4.0的一部分,微软推出新技术的最初代号为" Denali " 这是在微软的"主动"期间, 现在,这项技术终于正式命名为动态页面技术,或者叫做ASP。
它的前几个版本已出版,其中最重要的版本,包括WindowsNT4.0选择包(IIS4.0和2.0协议)、Windows2000(IIS5.0和3.0协议)。
对于这次讨论的目的,首先,我们要把ASP作为一个整体来看待,而不要想它的不同版本。
During the beta of IIS 2.0, which became part of Windows NT 4.0, Microsoft introduced a new technology initially codename d “Denali.” This was during Microsoft’s “Active” period and so the technology was eventually named Active Server Pages, or ASP. Several versions of have been released, most notably the versions included with Windows NT 4.0 Option Pack (ASP 2.0 and IIS 4.0) and Windows 2000 (ASP 3.0 and IIS 5.0). For the purposes of this discussion, I’ll consider ASP as a whole, without referring to version differences ASP在很短的时间内成为了一个协议,这在很大程度上是因为它把一些非常困难的问题(动态网页内容创造)变得比较容易。