Couple of things to note: 1) yes there was a typo in my quote of the original code;
they curly brace should not be there. 2) Already bought the book PERl & LWP. It is a
very good book but I can't find a definiative answer on how to "emulate" an IE browser
request.
Here is the actual code again (note that the URL should have quotes around it but
Outlook replaced them with a hyperlink in this email message). As previously stated,
it fetches the login FAQ instead of the login page that I want. If I use IE to fetch
the same URL, I get the login page.
# Structure the HTTP request.
$myUserAgent = LWP::UserAgent->new;
$myUserAgent->agent("Automation/0.1");
$myUserAgent->cookie_jar(HTTP::Cookies->new(autosave => 1));
# Get the login page.
$myRequest = $myUserAgent->request(GET https://www.accessallstate.com/anon/login.aspx);
Thanks,
Kenny