This is a strange issue which fails silently, and doesn’t output any errors or warning.
When you do a cURL request to local URL, it simply returns nothing. But there’s a workaround to this! In most cases, the error is because of the session, and a simple workaround may be this one:
// curl initiation goes before this session_write_close(); $r = curl_exec($ch); session_start();
