| verzia 1.20, 2004/12/02 15:39:32 |
verzia 1.21, 2004/12/02 15:49:11 |
| Riadok 40 class HTML_Content |
|
| Riadok 40 class HTML_Content |
|
| var $_content_type = null; |
var $_content_type = null; |
| var $_new_url = null; |
var $_new_url = null; |
| var $_cookies = array(); |
var $_cookies = array(); |
| |
var $_raw_cookies = array(); |
| var $_fp = null; |
var $_fp = null; |
| |
|
| function HTML_Content($file = null, $cookies = null) |
function HTML_Content($file = null, $cookies = null) |
| Riadok 108 class HTML_Content |
|
| Riadok 109 class HTML_Content |
|
| foreach ($this->_cookies as $key => $val) { |
foreach ($this->_cookies as $key => $val) { |
| $r->addCookie($key, $val); |
$r->addCookie($key, $val); |
| } |
} |
| |
foreach ($this->_raw_cookies as $cookie) { |
| |
$r->addCookie($cookie['name'], $cookie['value']); |
| |
} |
| $ret = $r->sendRequest(); |
$ret = $r->sendRequest(); |
| if ($ret !== true) { |
if ($ret !== true) { |
| return $ret; |
return $ret; |
| Riadok 123 class HTML_Content |
|
| Riadok 127 class HTML_Content |
|
| echo $r->getResponseBody(); |
echo $r->getResponseBody(); |
| exit; |
exit; |
| } */ |
} */ |
| $this->_content_type = $r->getResponseHeader('Content-Type'); |
|
| $data = $r->getResponseBody(); |
$data = $r->getResponseBody(); |
| |
$this->_content_type = $r->getResponseHeader('Content-Type'); |
| |
$this->_raw_cookies = $r->getResponseCookies(); |
| |
$this->_cookies = array(); |
| |
foreach ($this->_raw_cookies as $cookie) { |
| |
$this->_cookies[$cookie['name']] = $cookie['value']; |
| |
} |
| break; |
break; |
| } |
} |
| } |
} |
| Riadok 278 class HTML_Content |
|
| Riadok 287 class HTML_Content |
|
| return $this->_new_url; |
return $this->_new_url; |
| } |
} |
| |
|
| |
function getCookies() |
| |
{ |
| |
return $this->_cookies; |
| |
} |
| |
|
| |
function getRawCookies() |
| |
{ |
| |
return $this->_raw_cookies; |
| |
} |
| |
|
| function getHTML() |
function getHTML() |
| { |
{ |
| return '<!DOCTYPE '.$this->_data['doctype'].">\n" |
return '<!DOCTYPE '.$this->_data['doctype'].">\n" |