i'm attempting to login in to a remote site (for a user) without them seeing the login information
i tried this
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERPWD, "[USERNAME]:[PASSWORD]");
curl_setopt($ch, CURLOPT_URL, "http://www.example.com");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
but it displays the example.com's 404 page