in reply to HTTP: :REQUEST

G'day meanroc,

I don't know which part of that code you "do not understand".

The documentation for HTTP::Request and LWP::UserAgent have details.

The first line reads input; the next two lines have constructors; the fourth line sets a timeout: these seem very straightforward but please specify if any of those are where your problem lies.

The fifth line returns a response object. Perhaps this is where you're having difficulties. The two links above discuss this; HTTP::Response has details.

Regarding the second code fragment, the documentation for LWP::Simple has details (as the name suggests, this provides a simplified interface). The get() method returns content (not a response object).

-- Ken