首页 > Web开发 > 详细

Linux curl usage

时间:2015-11-04 13:03:14      阅读:294      评论:0      收藏:0      [点我收藏+]

use curl for rest api

curl -u username:password -X GET -H"Content-Type: application/json" restapi address

example : 

curl -u username:password -X GET -H"Content-Type: application/json" http://coli51.qad.com/rest/api/latest/issue/->?search\&fields=issuetype,status

 

Running this command may show operating log, add parameter ‘-s‘ can make it silent

example: 

curl -s -u username:password -X GET -H"Content-Type: application/json" http://coli51.qad.com/rest/api/latest/issue/->?search\&fields=issuetype,status

  

for detailed manpage http://curl.haxx.se/docs/manpage.html

Linux curl usage

原文:http://www.cnblogs.com/Raymond-Yang/p/4935398.html

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