Have you tried the LWP module documentation?

The following is a clip from the 'An Example' section

use LWP::UserAgent;
 $ua = LWP::UserAgent->new;
 $ua->agent("MyApp/0.1 ");

 # Create a request
 my $req = HTTP::Request->new(POST => 'http://search.cpan.org/search');
 $req->content_type('application/x-www-form-urlencoded');
 $req->content('query=libwww-perl&mode=dist');

 # Pass request to the user agent and get a response back
 my $res = $ua->request($req);



Gerald Preston wrote:

Hi!

Not sure where to begin, although I have been reading every thing I can find, but I am looking for a few good examples that use LWP to read web pages from a Perl script that runs from WIN XP DOS command line.
Any suggestion?

Thanks,

Jerry

------------------------------------------------------------------------

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to