本文整理汇总了PHP中http::get_response_body方法的典型用法代码示例。如果您正苦于以下问题:PHP http::get_response_body方法的具体用法?PHP http::get_response_body怎么用?PHP http::get_response_body使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类http
的用法示例。
在下文中一共展示了http::get_response_body方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _callWeboctave
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);
}
示例2: array
<?php
require_once 'http.inc';
header('Content-Type: text/plain');
$form = array('value' => 1, 'date' => '05/20/02', 'date_fmt' => 'us', 'result' => 1, 'lang' => 'eng', 'exch' => 'USD', 'Currency' => 'EUR', 'format' => 'HTML', 'script' => '../convert/fxdaily', 'dest' => 'Get Table');
$http_client = new http(HTTP_V11, true);
$http_client->host = 'www.oanda.com';
$status = $http_client->post('/convert/fxdaily', $form, 'http://www.oanda.com/convert/fxdaily');
if ($status == HTTP_STATUS_OK) {
print $http_client->get_response_body();
} else {
print "An error occured while requesting your file !\n";
print_r($http_client);
}
$http_client->disconnect();
unset($http_client);