lonea
08-26-2009, 04:09 AM
I'm trying to write a script that logs into youtube via cURL, but I'm getting nowhere.
Problem one- I'm not sure which website URL I should use. The actual login page or the the URL that is being called when the form is submitted.
So in this case,
https://www.google.com/accounts/ServiceLogin?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US<mpl=sso
or
https://www.google.com/accounts/ServiceLoginAuth?service=youtube
Problme two- Is this how I set the POST vars ?
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=username&password=pw);
Thanks.
Problem one- I'm not sure which website URL I should use. The actual login page or the the URL that is being called when the form is submitted.
So in this case,
https://www.google.com/accounts/ServiceLogin?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US<mpl=sso
or
https://www.google.com/accounts/ServiceLoginAuth?service=youtube
Problme two- Is this how I set the POST vars ?
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=username&password=pw);
Thanks.
