require_once "httpClient.php";
class GoogleHomePage extends httpClient {
const GOOGLE_HOME_PAGE = "http://www.google.com/";
public function __construct() {
parent::__construct(self::GOOGLE_HOME_PAGE);
parent::setFollowLocation(true);
parent::send();
echo $this->getResponse();
}
}
$google = new GoogleHomePage();
|