英语翻译Along with the HTTP response code,Tomcat also sent back

问题描述:

英语翻译
Along with the HTTP response code,Tomcat also sent back a few lines of
information before the contents of主ndex .html,as shown in Figure 2-4.
All of these lines are HTTP headers.HTTP uses headers to send meta-
information with a request or response.A header is a colon一delimited
name:value pair-that is,it contains the header's name,delimited by a colon
followed by the header's value.肠pical response headers include content-type
descriptions,content length,a time-stamp,server information,and the date the
content was last changed.This information helps a client figure out what is
being sent,how big it is,and if the data are newer than a previously seen
response.An HTTP request will always contain a few headers8.Common
request headers consist of the user-agent details and preferred formats,lan-
guages,and content encoding to receive.These headers help tell a server what
the client is and how they would prefer to get back information.Understanding
HTTP headers is important,but for now put the concept on hold until you
learn a little more about Servlets.HTTP headers provide some very helpful
functionality,but it is better to explain them further with some HttpserVlet
examples.
8.There are no mandatory headers in HTTP 1.0; in HTTP 1.1 the only mandatory header is the
Host header.
1个回答 分类:英语 2014-12-09

问题解答:

我来补答
所有这些线是HTTP头.HTTP使用标题发送元-
信息的请求和响应.标题是一个colon一delimited
名称:价值是pair-that,它蕴含着头的名字,划定由结肠
其次是标题的value.肠pical响应标头包括内容类型
描述、内容的长度,一个时间戳记,服务器信息、期限
最后更改内容.这个信息帮助客户找出是什么
被派,怎么大,如果使数据比先前更新
反应.一个HTTP请求总是有几headers8.共同
user-agent要求标题包括细节和优先的格式、局域网(lan)-
guages,和内容编码接受.这些标题帮助告诉服务器什么
客户以及他们如何喜欢回来的信息.理解
标头是重要的,但现在把观念在持有,直到你
学习一些/ Servlets.标头提供一些很有帮助的
功能,但这总来解释进一步与一些HttpserVlet
例子.
8.没有强制性的头在HTTP 1.0;在HTTP 1.1的唯一强制性的头球
主人的标题.
 
 
展开全文阅读
剩余:2000
下一页:原创8