From b85592ce1ed48d0713564324a96a6e3deb8f7c51 Mon Sep 17 00:00:00 2001 From: iProbe Date: Sun, 24 Sep 2023 21:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'linux=E5=9F=BA=E7=A1=80/c?= =?UTF-8?q?url=E6=8E=A8=E9=80=81=E5=B8=A6=E5=8F=82=E6=95=B0=E7=9A=84json.m?= =?UTF-8?q?d'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux基础/curl推送带参数的json.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 linux基础/curl推送带参数的json.md diff --git a/linux基础/curl推送带参数的json.md b/linux基础/curl推送带参数的json.md new file mode 100644 index 0000000..04cfd1c --- /dev/null +++ b/linux基础/curl推送带参数的json.md @@ -0,0 +1,6 @@ +```shell +AppCode="llm" +image="test" + +curl -X POST -H "Content-Type: application/json" -d '{"resourceName": "'"$AppCode"'", "resourceType": "deployment", "namespace": "llm-prod", "Image": "'"$image"'"}' +``` \ No newline at end of file