fread() on line 652 of the XLM-RPC library will report “SSL: Fatal Protocol Error” when reaching the end of the data via an SSL stream.
To remedy this change this:
while($datum = fread($fp, 4096))
{
$data .= $datum;
}
to this:
while(!feof($fp))
{
$data .= fread($fp, 4096);
}
For the record the XLM-RPC library doesn’t currently support SSL. However the above change works for regular HTTP requests too.
