PHP/Utility Function/curl setopt
Retrieving a protected page with cURL
<?php
$c = curl_init("http://www.example.ru/secrets.php");
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_USERPWD, "david:hax0r");
$page = curl_exec($c);
curl_close($c);
?>