Closed opentld closed 5 years ago
curl -X POST -d '{"type":"CLEAR"}' http://127.0.0.1:4212/index/io {"type":"MISFORMATTED_REQUEST"}
curl -X POST -d '{"type":"PING"}' http://localhost:4212/ {"type":"MISFORMATTED_REQUEST"}
in requesthandler.cpp, Json::Value data = StringToJson(dataStr); the data is null , why ?
I made a stupid mistake... curl -X POST -d {\"type\":\"PING\"} http://localhost:4212/ works well.
curl -X POST -d '{"type":"CLEAR"}' http://127.0.0.1:4212/index/io {"type":"MISFORMATTED_REQUEST"}
curl -X POST -d '{"type":"PING"}' http://localhost:4212/ {"type":"MISFORMATTED_REQUEST"}
in requesthandler.cpp, Json::Value data = StringToJson(dataStr); the data is null , why ?