replyHeaders[trim($r[1])] = trim($r[2]); } elseif (preg_match("/^(HTTP\/.*)/", trim($header_line), $r)) { $this->replyHeaders["HTTP_STATUS_LINE"] = trim($r[1]); $this->statusText=trim($r[1]); } else if (strlen(trim($header_line)) > 0 ){ array_push($this->replyHeaders, trim($header_line)); } return strlen($header_line); } } ?>