cvs: pear /HTTP_Request/docs example.php
| From: | Richard Heyes | Date: | Sun, 10 Feb 2002 22:10:44 +0000 |
| Subject: | cvs: pear /HTTP_Request/docs example.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2366@lists.php.net to get a copy of this message | ||
heyesr Sun Feb 10 17:10:44 2002 EDT
Added files:
/pear/HTTP_Request/docs example.php
Log:
* Added HTTP_Request class
Index: pear/HTTP_Request/docs/example.php
+++ pear/HTTP_Request/docs/example.php
<?php
/**
* This example will fetch the index page of php.net
* and display it.
*/
include('HTTP/Request.php');
$req =& new HTTP_Request('http://www.php.net/');
$req->sendRequest();
echo $req->getResponseBody();
?>