in reply to Re: Re: man HTTP::Request::Common
in thread man HTTP::Request::Common

Actually, they are not all the same thing - they supplement each other like gearwheels. The full process is that you set up a HTTP::Request, which sent to the server via the Net::HTTP module by a LWP::UserAgent object which then constructs a HTTP::Response.

The HTTP::Request::Common module is simply a convenience tool that provides shortcuts to common tasks in setting up HTTP::Requests.

Likewise, the LWP::Simple module is a library that provides shortcuts to common web-related tasks. As long as you don't need finegrained control over the process, it takes care of the entire mumbojumbo of setting up a UserAgent, a Request to pass to it, and pulling the data back out of the Response and reduces it to something as simple as $page = get("http://foo.com/bar.html");.

In your case, the gestore function does exactly what you want, as a look into the module's documentation would reveal.

In general, if you have a task and don't know which module to look at first, the best idea is probably to look at whatever is called ::Simple* or ::Easy*.

Makeshifts last the longest.