cURL request to local URL

June 28th, 2012 by Alex Leave a reply »

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
$r = curl_exec($ch);

Comments are closed.