Query String Parametersjson
1.当发起一次GET请求时,参数会以url string的形式进行传递。即?
后的字符串则为其请求参数,并以&
做为分隔符app
Form Dataurl
当发起一次POST请求时,若未指定content-type,则默认content-type为application/x-www-form-urlencoded。即参数会以Form Data的形式进行传递,不会显式出如今请求url中。code
Request Payloadorm
当发起一次POST请求时,若content-type为application/json,则参数会以Request Payload的形式进行传递(显然的,数据格式为JSON),不会显式出如今请求url中。字符串
总结:string
equest payload 和 form data 都是 entity-body 块的内容,只是由 Content-type
区分解析行为。
通常 form-data 是 `Content-type=application/x-www-form-urlencoded'
其他的通常都默认是 request payload `Content-type=
application/json'it
Query String Parameters 不管什么请求方式均可以带,取决于本身要不要解析。
entity-body 则是要部分请求方式
POST、PUT、PATCH、DELETE、OPTIONS、(UN)LINK、LOCK、PROPFIND、VIEW
之类的均可以带 body
io