作业帮 > 英语 > 作业

英语翻译Figure 2-4 Example HTTP HeadersGET and POSTThe first rel

来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/04/30 14:29:00
英语翻译
Figure 2-4 Example HTTP Headers
GET and POST
The first relatively widely used version of HTTP was HTTP 0.9.This had support
for only one HTTP method,or verb; that was cET.As part of its execution,a cET
request can provide a limited amount of information in the form of a query
string.However,the cET method is not intended to send large amounts of infor-
mation.Most Web servers restrict the length of complete URLs,including query
strings,to 255 characters.Excess information is usually ignored.For this reason
cET methods are great for sending small amounts of information that you do not
mind having visible in a URL.There is another restriction on cET; the HTTP
specification defines cET as a "safe" method which is also idempotentl0.This
means that cET must only be used to execute queries in a Web application.cET
must not be used to perform updates,as this breaks the HTTP specification.
To overcome these limitations,the HTTP 1.0 specification introduced the
PosT method.PosT is similar to cET in that it may also have a query string,but
the PosT method can use a completely different mechanism for sending infor-
mation.A PosT sends an unlimited amount of information over a socket con-
nection as part of the HTTP request.The extra information does not appear as
part of a URL and is only sent once.For these reasons the PosT method is usually
used for sending sensitive)) or large amounts of information,or when uploading
files.Note that PosT methods do not have to be idempotent.This is very
important,as it now means applications have a way of updating data in a Web
application.If an application needs to modify data,or add new data and is
9.A query string is a list started by a question mark,,and followed by name-value pairs in the #o)-
lowing format,paramName=paramValue,and with an ampersand,&,separating pairs,for example,
/index.html?fname=Bruce&lname=wayne&password=batman.
10.An idempotent operation is an operation that if run multiple times has no affect on state-that
is,it is query only not update.
11.However,realize that the data are still visible to snoopers; it just doesn't appear in the URL.
图2-4示例HTTP头
GET和POST
相对广泛应用于HTTP的第一个版本的HTTP 0.9.这已支持
只有一个HTTP方法,或动词,这是鲸鱼.作为其执行,一部份鲸鱼
要求能提供查询的形成数量有限的信息
字符串.然而,大学英语的方法是不打算派大量的Infor -
mation.大多数Web服务器限制的完整网址的长度,包括查询
琴弦,255个字符.过量的信息通常被忽略.为此
大学英语的方法是发送少量的信息,你不伟大
铭记在URL中可见.还有另外一个关于欧洲中部时间限制;的HTTP
规范定义了大学英语作为一个“安全”的方法也是idempotentl0.这
该大学英语只能用来执行在Web应用程序查询手段.鲸鱼
不得用于执行更新,因为这打破了HTTP规范.
为了克服这些限制,在HTTP 1.0规范中引入了
POST方法.邮政鲸鱼类似,它也可能有一个查询字符串,但
邮政方法可以用来发送Infor的一个完全不同的机制,
mation.一个邮政通过套接字发送浓度无限量的信息,
nection作为HTTP请求的一部分.额外的信息不会出现
URL的一部分,并且只发送一次.由于这些原因,邮政法通常
用于发送敏感))或大量的信息,或上传
文件.请注意,POST方法不必是幂等的.这是非常
重要,因为它现在是指应用程序有一个更新的方式在Web数据
申请.如果应用程序需要修改数据,或添加新的数据,并
9.一个查询字符串是一个清单,一个问号开始,并在#O名称值对后)?-
lowing格式,paramName = paramValue,并与一个符号,&,例如对分离,
/ index.html的?FName参数=布鲁斯&lname = =蝙蝠侠韦恩和密码.
10.等幂操作的是一个操作,如果多次运行不会影响国家的
,它是唯一没有更新的查询.
11.然而,实现这些数据仍可见的窥探者,它只是没有出现在URL中