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

Hello, Does anyone know how to post to an ASP (with paramters) and get the resultant html back ? Many thanks Lee Lee.Ablett@interwoven.com

Replies are listed 'Best First'.
Re: post to ASP
by davorg (Chancellor) on Mar 21, 2001 at 17:33 UTC

    This is all explained very clearly in lwpcook. Here's the example it gives:

    use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = new LWP::UserAgent; my $req = POST 'http://www.perl.com/cgi-bin/BugGlimpse', [ search => 'www', errors => 0 ]; print $ua->request($req)->as_string;
    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

Re: post to ASP
by arhuman (Vicar) on Mar 21, 2001 at 17:29 UTC
    As someone said in the CB, is the fact that this site is using ASP really important ?

    It seems that the LWP is the easy way to do what you want.
    For submiting info using the GET method see this post.
    For submiting info using the POST method see this post.


    "Trying to be a SMART lamer" (thanx to Merlyn ;-)
Re: post to ASP
by $code or die (Deacon) on Mar 21, 2001 at 17:28 UTC
    There is a good PerlScript tutorial here

    $ perldoc perldoc