help needed: posting variables to a web page? 
Author Message
 help needed: posting variables to a web page?

im making a perl script that runs trough a couple of forms automatically,
but to do that it needs to post a few variables to a web page (actually its
a script)
i got this code from perl.com but i dont know where the vars i want to send
should go:

    use HTTP::Request::Common qw(POST);
    use LWP::UserAgent;

    $ua = LWP::UserAgent->new();
    my $req = POST ' http://www.*-*-*.com/ ',
                   [ module => 'DB_File', readme => 1 ];
    $content = $ua->request($req)->as_string;

can anyone help me out? thx!

-cb



Fri, 05 Sep 2003 00:25:40 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help needed : saving a web page

2. dynamically changing web page - help needed

3. Need help with printing date on web page

4. Need Help In Accessing Web pages

5. Need help -- How to display an existing web page

6. dynamic web page creation and posting

7. Web pages from GET and POST

8. Reading a large file and post in to a web page

9. Extracting POST variables to a PHP page using Perl

10. inheriting environment variables in web pages

11. Pass in variables to web page

12. receiving variable from web page with <cgiscript>?<var>=x

 

 
Powered by phpBB® Forum Software