I need a script which logs into youtube to view flagged videos. How do I do this. So far I have a script like this but it isn't working:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.youtube.com/login?next_url=/watch%3Fv%3DXcHyY9poq4w");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"username=whatever&password=whatever");
$output = curl_exec ($ch);
curl_close ($ch);
echo $output;
?>
Just now all I get out is the login form...