in reply to ASP's with lwp

What do I need to do to access asp pages properly?

Access only pages without bugs. They aparently have a bug in the page. Seems like they try to emit different output based on the user's browser and the code is broken. If I download the page with Opera set to indentify itself as MSIE everything is cool, if I change it to identify as Opera I get exactly the same error as you.

  1. Contact the site and inform them of the problem. (It might be better to talk about Opera than about your script. That way they can test it themselves and cannot say it's your bug.)
  2. Ask LWP to identify itself as MSIE.
use LWP::Simple qw($ua); $ua->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CL +R 1.0.3705; .NET CLR 1.1.4322)'); ...

HTH, Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature