Yes because your post data has to be a valid JSON string

so you have to write
-d '"http://localhost:7474/db/data/node/29";'

wrap the double quotes in single quotes, otherwise json just gets http://...29 
which it can't parse as a string.

the "h" that it complains about is from http :)

Cheers

Michael
Am 10.02.2011 um 14:55 schrieb Tom Smith:

> So... my curl string for ...
> 
> Adding node id 29 to an index called "medical" with an index property name of 
> "name" with a value of "Hospitality_Recreation"
> 
> ...looks like  this ...
> 
> curl -i -s -HAccept:application/json  -HContent-Type:application/json -X POST 
> -d "http://localhost:7474/db/data/node/29"; 
> "http://localhost:7474/db/data/index/node/medical/name/Hospitality_Recreation";
>  
> 
> ... which can't quite be right. I'm getting...
> 
> Unexpected character ('h' (code 104)): expected a valid value (number, 
> String, array, object, 'true', 'false' or 'null')\n at [Source: 
> java.io.StringReader@f0754b8; line: 1, column: 2]
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to