【Linux】curl 发送post与get

Post请求

curl  -XPOST -i  —location 'https://10.186.113.153:8443/asm/api/v2/deviceManagement' \
--header 'Content-Type: application/json' --header 'Authorization: 5v0D4k2NRlKIIFICbPnVmg' \
--data '{"dataSubType":305,"dataType":2,"ispCode":"CMCC","logInfoReqParams":{"content":"admin使用admin账号在数据源中admin使用admin账号在数据源中新增了名为3ee3ef6a2eb04c83ba37058662c5de5d的数据;操作结果为成功。","devHash":"537adad35e6f48b33d013231af7f68b6df3dc7be4b86a44ded76467116088cdf","devIp":"10.186.159.71","logLvl":2,"logType":1,"loginAccount":"admin","loginIp":"10.186.159.71","opCode":101,"opRslt":0,"timeStamp":"1693886935"},"orderID":"2-305-4200001694694839754","orgCode":"420000","procTime":"20230913203359-20230914203359","sign":"c51140f53f7c52fbd3ea999c9d9ddb0a08b9c1b379fbf3db81f4e5e68c0f7eaf","timeStamp":"1694694839"}' -k 

get请求

curl --location 'http://127.0.0.1:8080/vulnerability-management/systemconfig/report?param=1'

你可能感兴趣的:(Linux,linux,运维,服务器)