in reply to form fill simulation with perl

LWP::Simple doesn't support the POST method. You'll need to use LWP::UserAgent and HTTP::Request as described in lwpcook.

Another alternative might be to look at WWW::Mechanize.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
•Re^2: form fill simulation with perl
by merlyn (Sage) on Aug 10, 2004 at 13:42 UTC
    LWP::Simple doesn't support the POST method.
    Well, it sorta does, with a couple of extra steps:
    use LWP::Simple qw($ua); my $content = $ua->post("http://www.example.com", [first_name => 'Randal', last_name => 'Schwartz'])->content;
    Of course, all you're getting here is a LWP::UserAgent created for you, and the right modules brought in with one use line.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.