Ejemplo n.º 1
0
 private function _readChangelog(http $http)
 {
     $szLines = '';
     $szResponse = '';
     for (;;) {
         $httperror = $http->ReadReplyBody($szLines, 10000);
         if ($httperror != "" || strlen($szLines) == 0) {
             $changelog = json_decode($szResponse, true);
             $http->SaveCookies($cookies);
             return array($httperror, $changelog, $cookies);
         }
         $szResponse .= $szLines;
     }
 }