Zoho reports PHP seems to no longer work

Zoho reports PHP seems to no longer work

Hey gang, any help would be appreciated.

Background: Built a site sometime ago where I ported over what I believe was the Zoho reports php api library code.  In particular, I think there was one that did the POST.  I have not touched this code in ages, and recently it seems to be broke.  

Offending code:
  1.      $params = array('http' => array(
  2.                   'method' => 'POST',
  3.                   'content' => $data
  4.                ));
  5.      if ($optional_headers !== null) {
  6.         $params['http']['header'] = $optional_headers;
  7.      }
  8.      $ctx = stream_context_create($params);
  9.      $fp = @fopen($url, 'rb', false, $ctx);
  10.      $response = @stream_get_contents($fp);
  11.      if (!$fp) {
  12.         throw new Exception("Problem with $url, $php_errormsg");
  13.      }
  14.      $response = @stream_get_contents($fp);
  15.      if ($response === false) {
  16.         throw new Exception("Problem reading data from $url, $php_errormsg");
  17.      }
  18.      return $response;
For some reason, this throws an exception now on line 13.  This is failing on my first POST, which is to receive a ticket number.  If I post the URL thrown in the exception into the browser, then I receive my ticket number just fine.  

So I am wondering if perhaps the zoho api has changed?  Should I just switch to using cURL?  

Thanks in advance, 
Steve