我的情况是我需要能够在bash中以json的形式获取gocd比较结果,以便我可以从输出中提取提交ID .

https://<go server url>/go/compare/<pipeline name>/<old build>/with/<new build>

GET中上述url的输出(带有身份验证的是html文档) .

但是我需要能够以JSON格式获取它,以便我可以从比较页面输出中获取提交ID列表 . 请提出是否有任何想法 .