Curl example with Cypher plugin.

481 views
Skip to first unread message

Melug

unread,
Sep 11, 2011, 10:06:50 PM9/11/11
to Neo4j
Hi, I downloaded latest stable version of neo4j, Cypher plugin is
working ok on the monitoring page. But I can't work it through REST
API.

Here's my curl command:

curl -X POST -H Accept:application/json -H Content-Type:application/
json -d '{"query": "start x=(4) return x}"}' -v
http://localhost:7474/db/daa/ext/CypherPlugin/graphdb/execute_query

It is giving 404 error

* About to connect() to localhost port 7474 (#0)
* Trying ::1... connected
* Connected to localhost (::1) port 7474 (#0)
> POST /db/daa/ext/CypherPlugin/graphdb/execute_query HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: localhost:7474
> Accept:application/json
> Content-Type:application/json
> Content-Length: 34
>
< HTTP/1.1 404 Not Found
< Access-Control-Allow-Origin: *
< Content-Type: text/html; charset=iso-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 1410
< Server: Jetty(6.1.25)
<
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /db/daa/ext/CypherPlugin/graphdb/execute_query.
Reason:
<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>

What am I doing wrong?

Tobias Ivarsson

unread,
Sep 11, 2011, 10:56:54 PM9/11/11
to ne...@googlegroups.com
It looks like you missed a character (a t) in your URI:
should probably be:
--
Tobias Ivarsson <tobias....@neotechnology.com>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
Reply all
Reply to author
Forward
0 new messages