Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ghassen_jenana's avatar

Sending with curl library requests to get an elasticsearch index settings

I'm trying to get an index from my elasticsearch node using curl but I don't get the expected result This is my code : $response = Curl::to('http://elastic:[email protected]:9200/150d540c-dba3-421c-9047-88dd7652268e/_search/?size=1000&pretty=1') ->returnResponseObject() ->get(); print_r(json_decode(json_encode($response),true));

0 likes
0 replies

Please or to participate in this conversation.