cancel
Showing results for 
Search instead for 
Did you mean: 

Apocl.load xml,json,csv

thomas_stuempfi
Node Clone

Hi there,
is there a possibility to call apoc.load.xml / apocl.load.json with http(s) post method?

regards
Thomas

1 ACCEPTED SOLUTION

Hello Michael,
thank you for the reply. Great to hear.

thumbs up!

Thanks
Thomas

View solution in original post

5 REPLIES 5

dana_canzano
Neo4j
Neo4j

certainly apoc.load.json supports https:// as I've done it and as described at

Hi dana,
well, not only https. get
but also other methods of http(s) like http(s) post http(s) put ... etc

see

actualy some sites do provide their data in form of post requests, this is due to the limitations of parameters in http get scenarios.
regards
Thomas

ah sorry. misread the part about POST . let me further research

You can use apoc.load.jsonParams(url, config, payload) and pass {method:"POST"} in the config.

see this example

call apoc.load.jsonParams("https://neo4j.com/docs/search/", {method:"POST"},apoc.convert.toJson({query:"pagecache",version:"3.5"}))

Hello Michael,
thank you for the reply. Great to hear.

thumbs up!

Thanks
Thomas