It was working fine before, but now youtube changed their API a bit and I've been trying to get it working all night with no luck at all. here's some of the code -> $loginURL = "http://youtube.com/signup"; $loginFields = "current_form=loginForm&next=/my_account&username=$user&password=pass&action_login=Log In&session_token=$token2"; $logged2 = hitPage($loginURL, $loginFields); Code (markup): I used a function to find the token and printed it to make sure it got the right string, but still nothing.. can someone help me figure this out, thanks in advance.
I've had (very rare) cases with cURL where using an array for the postdata succeeded where using a string failed, even though as far as I could tell the data was the same. I doubt that's the problem in this case, but just putting it out there.
ugh...i would not recommend cURL at all for this kind of thing....i recommend Perl & WWW::Mechanize BUT try Snoopy. the dirty solution would be to use something like LiveHTTPHeaders to see the url being sent out. OR look at the html form, look for hidden fields in the submit form. yahoo has several to prevent you from using curl.
That's the thing, I can't find the submit field for the Loginform, I tried wireshark to see the URL that is being sent out but it doesn't give me the whole url.
mind sharing? i'm trying to get an video uploader via php for youtube working, but i need to 'login via google account' via php.