FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Logging into Youtube? curl maybe...





Dougie1
Well I posted this a we while ago only regarding post data. I think This should send post data but it doesn't appear to work.

Any ideas?

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:

Code:

<?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...
Related topics
How many hours do you spend on games each day?
Hi Everyone
Thumbs.db and _vti_cnf
Displaying Forum points while logging....
How much TV do u watch per day???
SmartFTP - Need help logging in
help with my site please
forums
Whats Are The Dangers Of Using, Or Stealing Others Wifi
Problems Logging into Squirrel Mail
what is your best free e-mail?
Unable to log into FTP
Server 4 currently down (old topic, it it working again)
Junior Help Desk Analyst
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.