Inace sa mojom curl klasom bilo bi nesto tipa:
PHP kôd:
require_once("curl_http_client.php");
$curl = &new Curl_HTTP_Client();
//set credentials
$curl->set_credentials($username, $password);
$data = $curl->fetch_url("http://www.nekidomain.com/dir/fajl.txt");