I have hosted REST API, that REST API can show result if opened in web browser. But if I use curlrequest in PHP to call this REST API, the response of REST API is blank / nothing. This is my curlrequest code:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://myundian.rf.gd/public/user/");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
curl_close($curl);
echo $result;
Why does my curlrequest return blank response to call this REST API, but that REST API can show result if I open in web browser?

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support