HTTP和Servlet的基础知识(含外文出处)
HTTP和Servlet的基础知识(含外文出处)(中文4300字,英文3100字)
作者姓名:汉斯伯格斯登
文章出处:JSP设计(第三版)
摘要:本文简要的介绍了HTTP和Servlet技术的概念及其用法。
关键字:HTTP请求/响应模型 Servlet容器
1.1 HTTP请求/响应模型
所有扩展HTTP和基于HTTP协议是基于一个非常简单的通信模式。其工作原理如下:客户端,通常是一个Web浏览器,发出了一个请求资源的服务器,服务器发回的响应相应的资源(或响应的错误信息,如果它不能处理请求出于某种原因)。A资源是一些事情的数据,如一个简单的HTML文件逐字返回到浏览器或程序,动态生成的响应。
这种简单的模式意味着三个重要的事实你需要了解:
HTTP是一种无状态协议。这意味着服务器不保留任何信息发出后客户端的反应,因此,它不能承认,多请求来自同一客户端可能有亲缘关系。
The basics of HTTP and Servlet
Author's last name: Hans Mr Bergsten
Article source: JSP design (third edition)
Abstract: this paper briefly introduces the concept of Http and Servlet technology and its usage. [资料来源:Doc163.com]
Key words: the HTTP request/response model of the servlet container
1.1 The HTTP Request/Response Model
HTTP and all extended protocols based on HTTP are based on a very simple communications model. Here's how it works: a client, typically a web browser, sends a request for a resource to a server, and the server sends back a response corresponding to the resource (or a response with an error message if it can't process the request for some reason). A resource can be a number of things, such as a simple HTML file returned verbatim to the browser or a program that generates the response dynamically.