探测web是否可以登录

我需要使用blackbox去探测dolphindb web是否可以登录,以表征dolphindb是否夯死。 我使用postman提前POST请求,但是一直报错,麻烦帮忙看看。

{"sessionID":"2197856032","userId":"","resultCode":"1","msg":"tag 'functionName' in json request isn't specified.","object":[]}


attachments-2022-03-9TKbHSCh621f57ed2c454.png

请先 登录 后评论

1 个回答

沈鸿飞

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



请先 登录 后评论
  • 1 关注
  • 0 收藏,922 浏览
  • Excuse me 提出于 2022-03-02 19:35

相似问题