in reply to lwp::simple question
As any good General will tell you .... get mechanized! :-)
See Mechanize tutorial