As always when automating things and finding different behaviour between other programs, you need to find out where exactly the differences lie. My first guess would be that you're not sending the expected Referer (sic) header. But only a network trace like the HTTP Live Headers or Wireshark produce can tell for sure.
Maybe WWW::Mechanize already works for you as it mimics browser behaviour far closer than LWP::UserAgent does of itself.
In reply to Re^3: LWP::UserAgent, redirection does not work
by Corion
in thread LWP::UserAgent, redirection does not work
by dibucho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |