in reply to Links for Screen Scraping
Others answered your POST question already. As for the JavaScript, you need to write some Perl code that does the equivalent work to figure out which URL to request. This has been discussed at great length on this site, as you will see if you SuperSearch for JavaScript.