magwyz / pastec

Image recognition open source index and search engine
http://pastec.io
GNU Lesser General Public License v3.0
620 stars 175 forks source link

all the -d commands error, why ? #70

Closed opentld closed 5 years ago

opentld commented 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 ?

opentld commented 5 years ago

I made a stupid mistake... curl -X POST -d {\"type\":\"PING\"} http://localhost:4212/ works well.