首页 > Web开发 > 详细

curl 模拟restful 请求的用法

时间:2019-09-10 19:56:45      阅读:79      评论:0      收藏:0      [点我收藏+]

1.  Get请求

 

curl -XGET http://localhost/

 

2.  POST请求

 

curl -XPOST -H “Content-Type:application/json” -d ‘{“action”:“create”, “size”:1024}’ http://localhost:4806/v1.0/sqh001/disks/rbd1

 

3.  DELETE请求

 

curl -XDELETE http://localhost

 

4.  PUT请求

 

 

 

curl 模拟restful 请求的用法

原文:https://www.cnblogs.com/bob-coder/p/11502337.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!