I have a simple curl script and it works, problem is links on the target site are relative and not full links with http: and the target domain.
So where a image link is scr="/img/frm/div.gif" I'd like scr="http://www.targetsite.com/img/frm/div.gif"
Here my script
<?php
//the site or URL to get
$ch = curl_init("http://ninemsn.com.au");
//set the options for the transfer
curl_setopt($ch, CURLOPT_HEADER, 0);
//execute the session
curl_exec($ch);
//free up system resources !!IMPORTANT
curl_close($ch);
?>
Thanks for your time.