curl----get请求
curl address
如:curl 127.0.0.1:8080
带请求头get请求
curl -H "key:value,key:value" ip
如: curl -H "Key=2" 127.0.0.1:8080
curl-----post请求
1,参数在header
curl -d "aa=bb&cc=dd" "address"
比如:curl -d "startTime=2019-11-25 10:00:00&endTime:2020-05-30 10:00:00" "http://127.0.0.1:8082/test"
2,参数在body
```bash
curl -H "Content-Type:application/json" -X POST --data (json.data) URL
比如:curl -H "Content-Type:application/json" -X POST --data '{"startTime":"2019-11-25 10:00:00", "endTime":"2020-05-30 10:00:00"}' http://127.0.0.1:8082/test