<?
include("cHTTP.php");
$http = new clsHTTP();
// make a GET request
$http->getPage("http://www.php.net");
// get all the http headers
//print($http->getHeaders());
// get all content of downloaded file
print($http->getContent());
// to make posts
// clear all fields
//$http->clearFields();
//$http->addField ( 'FIELDNAME' , 'VALUE' );
//$http->addField ( 'anotherFIELDNAME' , 'VALUE' );
//$http->postPage("http://www.php.net");
// get all the http headers
//print($http->getHeaders());
// get all content of downloaded file
//print($http->getContent());
?>