-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
一、HTTP 请求数据格式 | ||
|
||
1. application/x-www-form-urlencoded 浏览器原生form表单,URL转义 | ||
2. multipart/form-data 表单上传文件 | ||
3. application/json | ||
4. text/xml | ||
|
||
二、 application/x-www-form-urlencoded | ||
|
||
说明地址:https://docs.oracle.com/javase/6/docs/api/java/net/URLEncoder.html | ||
|
||
body: view parsed时(优化将+显示成" ") | ||
|
||
eg: "SunjzYl72uIz CPGNICIyXe" | ||
|
||
body: view source | ||
eg: "SunjzYl72uIz+CPGNICIyXe" | ||
|
||
服务端:request.getParameter() 获取 |