作业帮 > 英语 > 作业

英语翻译This is an HTTP status line.Every HTTP response starts w

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/06/04 12:29:33
英语翻译
This is an HTTP status line.Every HTTP response starts with a status line.
The status line consists of the HTTP version,a status code,and a reason phrase.
The HTTP response code 200 means everything was fine; that is why Tomcat
included the requested content with the response.If there was some sort of issue
with the request,a different response code would have been used.Another HTTP
response code you are likely familiar with is the 404 "File Not Found" code.If you
have ever followed a broken hyperlink,this is probably the code that was
returned.
HTTP Response Codes
In practice,you usually do not need to understand all of the specific HTTP
response codes.JSP,Servlets,and Web servers usually take care of these codes
automatically,but nothing stops you from sending specific HTTP response
codes.Later on we will see examples of doing this with both Servlets and JSP.
A complete list of HTTP response codes along with other HTTP information
is available in the current HTTP specification,http://www.ietf.org/rfc/
rfc2616.txt.
英语翻译This is an HTTP status line.Every HTTP response starts w
这是一个HTTP状态栏上.每一个HTTP响应始于状态栏上.
状态行的由HTTP版本,这个状态码,而这就是短语.
HTTP响应代码200意味着一切都好,这就是为什么猫
包括所要求的满足于反应.如果有某种程度的问题
之要求,一种不同的应答代码会被使用.另一个HTTP
应答代码你可能熟悉是404 "未找到文件"的代码.如果你
曾经跟着一颗破碎的超链接,这可能是这些代码
回来了.
HTTP响应代码
事实上,你通常不需要了解所有的特定的HTTP
响应代码.由此,/ Servlets,和网络服务器通常照顾这些号码
自动,但没有阻止你把特定的HTTP响应
代码.稍后我们会看到这样做的例子和/ Servlets和JSP.
一个完整的列表的HTTP响应代码以及其他HTTP信息