(You must url encode the url within the src attribute.) */ /* Include the http class. Modify path according to where you put the class file. */ require_once(dirname(__FILE__).'/class_http.php'); $h = new http(); $h->fetch($_GET['url'], $_GET['ttl']); header("Content-Type: image/jpeg"); echo $h->body; ?>