in reply to perl LWP::User Agent credentials ignored on redirect

You need to be using cookies, like ikegami already told you on Stackoverflow.

Maybe you want to use WWW::Mechanize instead, which adds many convenience features to LWP::UserAgent?

Also, have you investigated whether there also is IMAP or POP3 access to that mail server? There are dedicated protocols for transferring mail between computers so scraping a web interface to mail seems a bit convoluted.

  • Comment on Re: perl LWP::User Agent credentials ignored on redirect

Replies are listed 'Best First'.
Re^2: perl LWP::User Agent credentials ignored on redirect
by Anonymous Monk on Dec 20, 2015 at 10:33 UTC
    thanks for your reply, Corion, via POP3 I can do it, but wanted to learn LWP and relatives. For the GET request I though it was the right way of using the cookie, but apparently it's not. So next I will look into WWW::Mechanize.