如何在Linux中使用curl或其他工具获取数据?

时间:2019-02-22 09:37:30

标签: shell api curl wget

我有一个服务器URL可访问内置票务系统URL:enter image description here

所以我有一个脚本可以使用curl将数据发布到该服务器:

curl -k -H "Content-Type: appliaction/xml" -X POST --data "@$XML_FILE" -u userone:somepassword https://172.23.223.122/BESTesting/api/userone

在以下位置附加了$XML_FILE的结构:

XML structure

它将返回呼叫ID为unifiedGateway_1550821108590

所以如果我想做相反的事情,例如我通过unifiedGateway_1550821108590,它将返回所有这一切,该怎么做?

0 个答案:

没有答案