<snip>
> > >
> >
> > >From what I read, there isn't any operator after POST and
> line works
> so I believe an operator isn't needed.
> >
> > Thank you for your help.
> >
> > Larry
> >
>
> Ah, yep. POST is a method provided by HTTP::Request::Common,
> interesting. Of course that sort of begs the question, why
> not just use
> the 'post' method of the UA, but to each their own.
>
I originally tried
my $res = $ua->post('http://66.158.0.80/test2.asp', $query->Vars );
and without the brackets it didn't work. I then tried using my $res =
$ua->request(POST 'http://66.158.0.80/test2.asp', [ email=>$query->param('email')]);
and was able to make some progress with passing data so I just stayed with it. Now
that I realize I need the brackets
my $res = $ua->post('http://66.158.0.80/test2.asp', [ $query->Vars ]);
I can remove the use HTTP::Request::Common; use the $ua->post method and everything
should run a little bit smoother.
You were right about things being more complicated than they needed to be. I guess I
read too many docs and got myself confused.
Larry
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>