Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢昇
test
Commits
9bd3b5c6
Commit
9bd3b5c6
authored
Dec 12, 2018
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update API测试.md
parent
0c9693db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
API测试.md
API测试.md
+12
-3
No files found.
API测试.md
View file @
9bd3b5c6
# 一、H
TTP请求方式
# 一、H
TTP请求方式
...
@@ -12,4 +12,13 @@
...
@@ -12,4 +12,13 @@


如图,问号后的部分为实际的参数请求信息。将参数暴露在url上的方式相对POST来说安全性更低。
如图,问号后的部分为实际的参数请求信息。将参数暴露在url上的方式相对POST来说安全性更低。
而POST请求方式则是将请求信息放在请求体中,
而POST请求方式则是将请求信息放在请求体中,通过约定的格式将请求的信息传递出去。
\ No newline at end of file

如图是一个接口约定的POST请求格式,将该请求复制到body中,即可发送请求。
对于
**GET**
来说,客户端与服务端的交互像是一个提问(如查询操作、搜索操作、读操作)
对于
**POST**
来说,有一下几种情况:
1.
交互是一个命令或订单(order),比提问包含更多信息
2.
交互改变了服务器端的资源并被用户察觉,例如订阅某项服务
3.
用户需要对交互产生的结果负责
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment