Re: diff between $request->content($c) and $ua->post($url, {}, Content => $c)

Gisle Aas <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Wed, May 27, 2009 at 16:29, Terrence Brannon <[email protected]> wrote:
> Hi,
>
> I'm wondering what the difference is between providing content to the
> HTTP::Request instance:
>
>  my $req = HTTP::Request->new(POST => $self->url);
>  $req->content($c);
>
> and creating a LWP::UserAgent instance and using the Content pseudo header.

It's just totally different.  In the first case you end up with a
HTTP::Request object and in the second case an LWP::UserAgent object
:-)

--Gisle

> I have a more practical question next.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.