$get->host = "webapps.nyc.gov";
$get->port = 8084;
$get->page = "http://webapps.nyc.gov:8084/CICS/f704/f403001I?BBL=".$bbl;
$get->useragent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705)";
$get->timeout = 5;
$get->accept = "/";
$sHnd = @fsockopen ($this->host, $this->port, $errno, $errstr, $this->timeout);
//echo $this->host."<BR>";
// echo $this->port."<BR>";
// echo $errno."<BR>";
// echo $errstr."<BR>";
// echo $this->timeout."<BR>";
if ($sHnd && !$errno)
{ //echo "BB".$sHnd;
fputs ($sHnd, $this->request);
// Get source
while (!feof($sHnd))
{
$result .= fgets($sHnd,128);
}
// Strip header
if ($this->strip_responseheader)
{
$result = $this->_stripResponseHeader($result);
}
// Strip tags
if ($this->striptags)
{
$result = strip_tags($result);
}
// Show the source only
if ($this->showsource && !$this->striptags)
{
$result = htmlentities($result);
$result = nl2br($result);
}
} else {
$result = null;
//$result = "Unable to connect to ".$this->host." on port ".$this->port." ( ".$errstr.")";
}
$sHnd = null;
return $result;