Examples of WWW::Mechanize with cookies and redirect?

I'd like to use Michael Neumann's WWW::Mechanize package to do some web
scraping. This will involve cookie management and possibly some
redirection.

Could anyone point me to some real-world WWW::Mechanize examples that
handle cookies and redirection? I haven't yet been able to find any on
the net, and I'm not sure how to do this.

Thanks in advance.

···

--
Lloyd Zusman
ljz@asfast.com
God bless you.

Lloyd Zusman wrote:

I'd like to use Michael Neumann's WWW::Mechanize package to do some web
scraping. This will involve cookie management and possibly some
redirection.

Could anyone point me to some real-world WWW::Mechanize examples that
handle cookies and redirection? I haven't yet been able to find any on
the net, and I'm not sure how to do this.

A redirect is automatically followed, so you don't have to think about it. Cookies are handled automatically as well, but just in a very primitive way (every cookie is sent back to the server, regardless of it's PATH or timeout).

Regards,

   Michael

Michael Neumann <mneumann@ntecs.de> writes:

Lloyd Zusman wrote:

I'd like to use Michael Neumann's WWW::Mechanize package to do some web
scraping. This will involve cookie management and possibly some
redirection.
Could anyone point me to some real-world WWW::Mechanize examples that
handle cookies and redirection? I haven't yet been able to find any on
the net, and I'm not sure how to do this.

A redirect is automatically followed, so you don't have to think about
it. Cookies are handled automatically as well, but just in a very
primitive way (every cookie is sent back to the server, regardless of
it's PATH or timeout).

Regards,

  Michael

Thank you for clearing this up!

···

--
Lloyd Zusman
ljz@asfast.com
God bless you.