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'

 

相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案