<?php $c = curl_init('http://www.example.com/secrets.php'); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); curl_setopt($c, CURLOPT_USERPWD, 'david:hax0r'); $page = curl_exec($c); curl_close($c); ?>