Im making a plugin and using unirest-php library. When i try to get json from a url Unirest gives a Cannot resolve host except, yet the host is working. PHP: use Unirest\Request;use Unirest\Response;use Unirest\Method;class Gitter { const API_URL = "https://api.gitter.im/v1"; const STREAM_URL = "https://stream.gitter.im/v1"; public static function getJSON($path) { return Request::get("https://api.gitter.im/v1/", array("Accept" => "application/json")); }} Maybe i should include unirest using miner?
Its definitely the PHP binary im using. Could you attach a PHP 7 binary please? It has to be a single binary because im using an Android.
I tried using cURL, but still could resolve hostname. However I went on termux and installed the php package using apt (yes, all on an android device) then ran the script using that php binary and it worked. However the php used in termux isint a single binary file and is specifically setup for termux, so I can't use that for pocketmine unfortunately.