Or better yet use PEAR HTTP_Client:

http://pear.php.net/package/HTTP_Client

Quick way:

require_once ('HTTP/Client.php');

$request =& new HTTP_Client();

$result =& $request->get('http://www.url.com');

if (PEAR::isError($result))
{
        die('Houston, we have a problem');
}
else
{
        $response =& $request->currentResponse();

        echo 'BODY IS: ' . htmlentities($response['body']);
}

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to