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.


In reply to Re^3: man HTTP::Request::Common by Aristotle
in thread man HTTP::Request::Common by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.