码迷,mamicode.com
首页 > Web开发 > 详细

Linux curl usage

时间:2015-11-04 13:06:27      阅读:266      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!