Location: PHPKode > scripts > Simple CURL Wrapper > simple-curl-wrapper/index.php
<?
/*
  MyCurl example
  Author: Skakunov Alex (hide@address.com)
  Date: 26.11.06
  Description: goes to http://a4.users.phpclasses.org/ and parses for header info
*/

include "MyCurl.php"; //class file is required

$mc = new MyCurl(); //create an instance
$mc->getHeaders = false;
$mc->getContent = true;

$contents = $mc->get("http://a4.users.phpclasses.org/"); //get all data from this URL

echo $mc->get_parsed($contents, "<h1>", "</h1>"); //grab header text (it's just an example. This method is useful to get necessary info from

?> 
Return current item: Simple CURL Wrapper