The values are sent in the request body, in the format that the content type specifies.
(值以内容类型指定的格式在请求正文中发送。)
Usually the content type is application/x-www-form-urlencoded
, so the request body uses the same format as the query string:
(通常,内容类型为application/x-www-form-urlencoded
,因此请求正文使用与查询字符串相同的格式:)
parameter=value&also=another
When you use a file upload in the form, you use the multipart/form-data
encoding instead, which has a different format.
(当您使用表单上载文件时,将改用multipart/form-data
编码,格式不同。)
It's more complicated, but you usually don't need to care what it looks like, so I won't show an example, but it can be good to know that it exists. (它更复杂,但是您通常不需要关心它的外观,因此我不会显示示例,但是知道它的存在可能会很好。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…