Hi scarfguy,
Do the contents of the HTML file you download give you a hint as to what is going wrong?
It's been a while since I worked with Mechanize, so someone else might have a quicker solution handy, but my first thought was to use Wireshark to record a normal, successful session from the browser and compare that to what Mechanize is doing. Perhaps there is a redirect happening that Mechanize isn't dealing with, or the server has a mechanism in place to detect automated downloads, or some header isn't getting set the right way, or something else...
Update: Actually, the AM is probably right, why are you switching from WWW::Mechanize to LWP::Simple? You lose any cookies or referrers that logging in with Mechanize gains you.
Regards,
-- Hauke D
In reply to Re: LWP::Simple trouble.
by haukex
in thread LWP::Simple trouble. [SOLVED]
by scarfguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |