Commit 18d8e0a3 authored by 谢昇's avatar 谢昇

Update API测试.md

parent 5f8577e3
-- "a/API\346\265\213\350\257\225.md"
# 一、HTTP请求方式
# 一、HTTP请求方式
在介绍API测试之前,我觉得有必要简单说一下HTTP的请求方式。
在正规的接口文档最开始处,一般都会注明对于所有接口的一个约定,包括**使用协议、传输格式、请求方式**等等。
比如以下chain33的接口文档约定:
![test](https://gitlab.33.cn/flyaway53/test/raw/master/img-folder/4.png)
使用的是POST的请求方式。而有些接口会使用GET的请求方式,两者之前还是存在一定的区别。
当然HTTP请求方式还有HEAD、OPTIONS、PUT、DELETE、TRACE、CONNECT这些,但测试中一般不会遇到。
### 那么POST和GET究竟有哪些区别?
最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment