on 7/30/02 1:24 PM, [EMAIL PROTECTED] purportedly said:

> Hello to all LWP'ers again.  I've got a new problem.  The code that I used to
> log into several secure web sites doesn't want to work on a new web site.
> Here is the code:
> 
> # 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});
> 
> The problem is that the page that is retrieved via this code (i.e. what winds
> up in $myRequest->content) is not the same as if I just type in the URL in MS
> Explorer.  In Explorer, I get the login page as expected.  With the above
> code, I'm redirected to the "login FAQ".  I'm stumped.  Any help would be much
> appreciated.  Thanks,
> Kenny

I will assume the curly close quote is a typo--you should otherwise get a
syntax error. The reason could be that the site has browser requirements
that you don't meet, such as unrecognized user agent or requiring 128 bit
SSL.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Reply via email to