Array ( [cookieVar1] => aaa [cookieVar2] => bbb )
200
<pre>
<?
require_once('webpage.class.php');
$oPage = new CWebPage();
$oPage->getPage('ewgenij.net', // Хост
80, // Порт
'http://ewgenij.net/testscripts/wp/test2.php', // URL
array('Referer' => 'http://ewgenij.net/', 'Accept' => '*/*'), // спецпараметры (не обязательно)
array('a1' => 'b1', 'a2' => 'b2'), // куки (не обязательно)
array('a3' => 'b3', 'a4' => 'b4') // POST (не обязательно)
);
echo $oPage->getHeaders();
echo '<p> </p>';
print_r($oPage->getCookie());
echo '<p> </p>';
echo $oPage->getCode();
echo '<p> </p>';
echo $oPage->getResponse();
highlight_file(__FILE__);
?>