Yes, WWW::Mechanize does exactly that, unless clicking the button involves JavaScript. If JavaScript was involved and you're on a Windows machine, I'd use Win32::IE::Mechanize.
As for your second question, it would use the IP address of the machine on which the script is running. I presume you intend to do this from a CGI script. CGI scripts run on the web server, so it'll be the web server's IP address that will be used.
In reply to Re: how to open page and follow link
by ikegami
in thread how to open page and follow link
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |