美文网首页
linux中curl使用

linux中curl使用

作者: 楼兰King | 来源:发表于2020-09-23 11:02 被阅读0次

curl -i -H "Content-Type: application/json" -X POST -d "{"title":"Read a book1"}" http://localhost:8000/hyl/api/v1.0/tasks

curl -i -H "Content-Type: application/json" -X PUT -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/2

curl -i -H "Content-Type: application/json" -X DELETE -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/2

curl -i -H "Content-Type: application/json" -X DELETE -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/1

curl -X put --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"id":"12345"}' http://localhost:8000/hyl/api/v1.0/delete

相关文章

网友评论

      本文标题:linux中curl使用

      本文链接:https://www.haomeiwen.com/subject/htwnyktx.html