curl -X POST http://ip:8888/nacos/v1/cs/file/download -H "Accept: application/octet-stream" -H "Content-type: application/json" -o file.zip -d'
{
"namespaceId": "9f069446-e378-49af-9f69-e4e399e9becf",
"files": []
}
'

-X 指定请求类型

-H 指定请求头

-o 指定保存文件名

-d 指定 json 参数

 

get 请求发送参数

用 \& 转义

curl http://ip:8888/nacos/v1/cs/file/downloadNamespace?namespaceId=9f069446-e378-49af-9f69-e4e399e9becf\&group=yj

 或者使用引号

curl 'http://ip:8888/nacos/v1/cs/file/downloadNamespace?namespaceId=9f069446-e378-49af-9f69-e4e399e9becf&group=yj'