I tried using this code. It saved the cookies to a file, but I don't know how to use them or if I have to use them. But I think I am posting properly, but at the end of the code where I GET the data, it just gives me 'guest' data as if I didn't log in.
$login = "username";
$password = "password";
$action = "http://login.yahoo.com/config/login";
$cookie_file = "d:/perl/yahoo_cookie.txt";
$cookie_jar = HTTP::Cookies->new(file=>"$cookie_file");
$ua = LWP::UserAgent->new();
$ua->agent("Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)");
$ua->cookie_jar(HTTP::Cookies->new(file => "$cookie_file", autosave =>
$response= $ua->request(POST $action,[
$content = $response->content();
$team1 = "http://baseball.fantasysports.yahoo.com/baseball/show?pag
$content2 = get($team1);
Is there something wrong with this? Am I GETing the data of the next page properly? By the way I am trying to do all of this in a DOS window. Can I do it that way? By the questions I am asking, I'm sure you can tell that I am new to this. I hope you can help. Thanks.