Example #1
0
 private function _callWeboctave()
 {
     $form = array('commands' => $this->_script);
     $http_client = new http(HTTP_V11, true);
     $http_client->host = 'hara.mimuw.edu.pl';
     $status = $http_client->post('/weboctave/web/index.php#menus', $form);
     $this->_octaveResult = $http_client->get_response_body();
     $http_client->disconnect();
     unset($http_client);
     $dom = new Weboctave_htmldom($this->_octaveResult);
     return $dom->getOctaveResult($this->_iterations);
 }