private function parse()
{
$offset = 0;
while ($this->getHeaderPosition($offset)) {
$offset = $this->getHeaderPosition($offset) + 4;
}
if (($pos = strpos($this->responseText, "\r\n\r\n", $offset)) > 0) {
$this->body = substr($this->responseText, $pos + 4);
$this->header = substr($this->responseText, $offset, $pos - $offset);
return;
}
$this->body = '';
$this->header = '';
}