I'm looking for a spider tool that can be dropped into our existing web application. The ideal one would take a URL base path, and invoke a Perl routine every time it found a link or page from the same site. It needs to be fully aware of cookies, session IDs, and all the major authorization models.