I know. You said LWP is difficult, yet you showed it work via subclass WWW::Mechanize. It's probably just one line that's missing to handle cookies, but you've ignored the request for the information that would confirm that or find the actual problem.