I am trying to compile my application which gets some information from HTTP/GET Request. The compilation is working great except for the cURL + json_decode operation which is simply not working.
Already tested all PHP versions and included curl and openssl DLL’s.
Running below code works perfectly well.
Any assistance will be higly appreciated!
$curl = curl_init();
CURLOPT_URL => ‘http://server_ip/esc.php’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ‘’,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘GET’,
$fieldinfo = curl_exec($curl);
$fieldinfo = json_decode($fieldinfo, true);