body 的内容不对,没有符合 json rpc 的格式
方法 ①
curl http://127.0.0.1:8848/metrics
方法 ② (推荐)
https://github.com/dolphindb/api-javascript/blob/master/README.zh.md
方法 ③
curl -X POST "http://127.0.0.1:8848/" -H "content-type: application/json" -d "{\"sessionID\":\"0\",\"functionName\":\"login\",\"params\":[{\"name\":\"username\",\"form\":\"scalar\",\"type\":\"string\",\"value\":\"admin\"},{\"name\":\"password\",\"form\":\"scalar\",\"type\":\"string\",\"value\":\"123456\"}]}"
参考 https://github.com/dolphindb/api-json