ZartroidZ has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to create a program that, when run, it submits some text entries to a website that I did not create. Here's a warning flag that is probably frustrating to see: I new to Perl...

I'm stuck on the part of the program that would paste the three sections of text that I got from a file into the different fields (textboxes, of course) on the website... If this problem is too vague, then say so, please, and thanks, if you help any...

E-mail ZartroidZ@yahoo.com if you don't want to post a response.

Replies are listed 'Best First'.
Re: Commicating with foreign websites
by Beatnik (Parson) on Sep 22, 2002 at 16:23 UTC
    Well, there's always the LWP moduleset but try WWW::Automate instead :)
    #straight from POD use WWW::Automate; my $agent = WWW::Automate->new(); $agent->get($url); $agent->follow($link); $agent->form($number); $agent->field($name, $value); $agent->click($button); $agent->back(); $agent->add_header($name => $value); print "OK" if $agent->{content} =~ /$expected/;
    It's usually used for testing, IIRC, but can be used for stuff like submitting too :)

    Greetz
    Beatnik
    ...Perl is like sex: if you're doing it wrong, there's no fun to it.