📜  docker 使用 Curl 测试连接 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.398000             🧑  作者: Mango

代码示例1
$ curl --request POST \
  --url http://localhost:8000/test \
  --header 'content-type: application/json' \
  --data '{
    "msg": "testing"
}'
curl: (7) Failed to connect to localhost port 8000: Connection refused