Skip to content

Commit

Permalink
update HTTP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhenzero committed Mar 30, 2019
1 parent e065b95 commit d3b1180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/notes/HTTP.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ GET 用于获取资源,而 POST 用于传输实体主体。

GET 和 POST 的请求都能使用额外的参数,但是 GET 的参数是以查询字符串出现在 URL 中,而 POST 的参数存储在实体主体中。不能因为 POST 参数存储在实体主体中就认为它的安全性更高,因为照样可以通过一些抓包工具(Fiddler)查看。

因为 URL 只支持 ASCII 码,因此 GET 的参数中如果存在中文等字符就需要先进行编码。例如 `中文` 会转换为 `%E4%B8%AD%E6%96%87`,而空格会转换为 `%20`。POST 参考支持标准字符集
因为 URL 只支持 ASCII 码,因此 GET 的参数中如果存在中文等字符就需要先进行编码。例如 `中文` 会转换为 `%E4%B8%AD%E6%96%87`,而空格会转换为 `%20`。POST 参数支持标准字符集

```
GET /test/demo_form.asp?name1=value1&name2=value2 HTTP/1.1
Expand Down

0 comments on commit d3b1180

Please sign in to comment.