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
18d8e0a3
Commit
18d8e0a3
authored
Dec 12, 2018
by
谢昇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update API测试.md
parent
5f8577e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
API测试.md
API测试.md
+12
-1
No files found.
API测试.md
View file @
18d8e0a3
-- "a/API\346\265\213\350\257\225.md"
# 一、HTTP请求方式
# 一、HTTP请求方式
在介绍API测试之前,我觉得有必要简单说一下HTTP的请求方式。
在正规的接口文档最开始处,一般都会注明对于所有接口的一个约定,包括
**使用协议、传输格式、请求方式**
等等。
比如以下chain33的接口文档约定:

使用的是POST的请求方式。而有些接口会使用GET的请求方式,两者之前还是存在一定的区别。
当然HTTP请求方式还有HEAD、OPTIONS、PUT、DELETE、TRACE、CONNECT这些,但测试中一般不会遇到。
### 那么POST和GET究竟有哪些区别?
最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。
\ 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