Francois, I just tried your query from the Web HTTP console and it works with
http> POST /db/data/node/0/traverse/node {"order":"breadth_first","uniqueness":"node_global","return_filter":{"body":"position.endNode().getProperty('name','').toLowerCase().contains('pepsi')","language":"javascript"},"max_depth":10000} ==> 200 OK ==> [ ] However, with curl, there seems to be a bit of trickery necessary to get it to escape all the '""'''""' stuff correctly, so I guess you rather should use to library to get that right :) HTH Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Fri, Nov 11, 2011 at 7:04 AM, francoisk6 <francois_...@hotmail.com> wrote: > oops, sorry for the typo and thank you for the reply. > I used the below syntax: > > curl -X POST -H Accept:application/json -H Content-Type:application/json -d > '{"order":"breadth_first" , "uniqueness":"node_global" , > "return_filter":{"body":"position.endNode().getProperty('name').toLowerCase().contains('pepsi')" > , "language":"javascript"} , "max_depth":10000 }' > http://localhost:7474/db/data/node/0/traverse/node > > and > > curl -X POST -H Accept:application/json -H Content-Type:application/json -d > '{"order":"breadth_first" , "uniqueness":"node_global" , > "return_filter":{"body":"position.endNode().getProperty('name', > '').toLowerCase().contains('pepsi')" , "language":"javascript"} , > "max_depth":10000 }' http://localhost:7474/db/data/node/0/traverse/node > > and both are producing same errors mentioned in original post. > > ----- > Regards, > Francois Kassis. > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Travers-using-curl-tp3496892p3498909.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user