Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Examples of WWW::Mechanize with cookies and redirect?

84 views
Skip to first unread message

Lloyd Zusman

unread,
Aug 27, 2005, 10:48:59 AM8/27/05
to
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
l...@asfast.com
God bless you.

Michael Neumann

unread,
Aug 29, 2005, 7:06:00 AM8/29/05
to
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


Lloyd Zusman

unread,
Aug 29, 2005, 5:56:16 PM8/29/05
to
Michael Neumann <mneu...@ntecs.de> writes:

Thank you for clearing this up!

0 new messages