Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Automated Yahoo Mail login with cURL - how?

$
0
0

I am currently attempting to create a page with cURL instructions that does the following:

Take the following link, send a GET request to it, and retrieve the results.

http://login.yahoo.com/config/login?login=xxxxxxx&passwd=yyyyyyyy&.done=http://m.yahoo.com/mail

xxxxx - username yyyyy - password

Easy, right? Not really. Since the page that is to be returned, is designed to automatically log you in your Yahoo Mail inbox.

I tried with:

 

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_AUTOREFERER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_URL => 'http://login.yahoo.com/config/login?login=xxxxxx&passwd=yyyyyyy&.done=http://m.yahoo.com/mail',
CURLOPT_USERAGENT => 'something-here'
));


$resp = curl_exec($curl);

curl_close($curl);

echo $resp;

?>
 

I do get a response, but all it's about is the Yahoo Mail login page. It doesn't actually execute the login and retrieve the related Yahoo inbox.

How would I go about doing that with cURL?

Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images