Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-09-2019 04:39 AM
Hi there,
is there a possibility to call apoc.load.xml / apocl.load.json with http(s) post method?
regards
Thomas
Solved! Go to Solution.
09-10-2019 07:08 AM
Hello Michael,
thank you for the reply. Great to hear.
thumbs up!
Thanks
Thomas
09-09-2019 05:43 AM
certainly apoc.load.json supports https:// as I've done it and as described at
09-09-2019 06:52 AM
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
09-09-2019 07:29 AM
ah sorry. misread the part about POST
. let me further research
09-09-2019 03:15 PM
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"}))
09-10-2019 07:08 AM
Hello Michael,
thank you for the reply. Great to hear.
thumbs up!
Thanks
Thomas
All the sessions of the conference are now available online