【发布时间】:2014-11-27 13:45:21
【问题描述】:
curl -b -j "Content-Type: application/json" -d '["quer
y:"{"MATCH n RETURN n"}]' http://localhost:7474/db/data/
curl: (6) Could not resolve host: Content-Type
你好,
我想从中获取 JSON。使用 curl 并将其写入本地文件。 所以我可以用它做其他事情。
但是当执行这个命令时,我得到了无法解析 Content-Type。
我试过了:
curl -b -j Content-Type: application/json' without the double quotation mark ("")
但后来我得到了这个结果
curl: (6) Could not resolve host: Content-Type
curl: (6) Could not resolve host: application
现在我已经修复了这个语法错误
curl -b -j -d '["query:"{"MATCH n RETURN n"}]' http://
localhost:7474/db/data/ -o .
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 28 0 0 100 28 0 13 0:00:02 0:00:02 --:--:-- 13
但是没有数据:(
【问题讨论】:
标签: json http curl request response