Simple enough, use LWP!
get, head, getprint, getstore, mirror - Procedural LWP interface
This interface is intended for those who want a simplified view of the libwww-perl library. It should also be suitable for one-liners. If you need more control or access to the header fields in the requests sent and responses received you should use the full object oriented interface provided by the
The following functions are provided (and exported) by this module:
This module also exports the HTTP::Status constants and procedures. These can be used when you check the response code from getprint(), getstore() and mirror(). The constants are:
The HTTP::Status classification functions are:
The module will also export the LWP::UserAgent object as
The user agent created by this module will identify itself as "LWP::Simple/#.##" (where "#.##" is the libwww-perl version number) and will initialize its proxy defaults from the environment (by calling $ua->env_proxy).