Beefy Boxes and Bandwidth Generously Provided by pair Networks
Bob Pathologically Eclectic Rubbish Lister  Passing POST
parameters  by Anonymous Monk on Apr 04, 2000 at 02:26 UTC
( #6769=perlquestion: print w/ replies, xml ) Need Help??  Ok..
here goes: Is there a way to pass parameters with a form that
uses the POST method? For instance, you can go point a URL at:
(passing the parameter 'id=3'). Can I have something that points
the browser to that same form, and pass that same parameter
(id=103) in a POST form, and then read the parameter using the
STDIN? HELP!!  Comment on Passing POST parameters Re: Passing
POST parameters by btrott (Parson) on Apr 04, 2000 at 03:09 UTC
Sure. You should take a look at the source of lwp-request, an
app that uses LWP::UserAgent to make requests. It does exactly
what you're looking for, so you could either use it directly or
incorporate its relevant bits into your code.      Essentially,
you just do:      # create a new LWP::UserAgent my $ua = new
LWP::UserAgent; # create