Using curl in php to make an api

Im trying to make a rest api using curl in php. currently im just trying to see if i can open the browse window via cURL. here is the code:
image

this just gives me a blank page. what am i doing wrong? also, how to i send data to make queries in neo4j? like if i wanted to do "match (m:movie{movieName="hello"})--(p) return n,p" how would i do that using curl? Can i get the data i want in an array? is it possible to display the data the way it is done in graph form in the browser?
thank you

You need a browser to render the page, so sending a curlget’ isn’t going to achieve what you want. You will get some html back.

You can use curl with the neo4j http api to send and receive queries.