I'm writing a little script that is required to log in to Yahoo's mail and clear out the bulk folder. The problem is I can't seem to get it to log in...
my $request = $ua->get("https://login.yahoo.com/config/login?.src=fpct
+x&.done=http://www.yahoo.com");
$cookie_jar->extract_cookies($request);
This part works fine, it grabs the cookies and writes out to a file like it's supposed to (under HTTP::Cookies). It's when I try and use a POST string to actually do the logging in that it just won't work.
$postString = 'https://login.yahoo.com/config/login?' . "$postString";
my $request = $ua->get($postString);
There's my login string (it works manually), but when I dump the page content into an html file and open it, it tells me my browser is blocking cookies.
I've looked all over cpan.org and different modules documentation and I just can't seem to figure out exactly what I'm supposed to do :( Please help me out!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.