[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Request a .html page on another system



On Sun, 14 Feb 1999 09:51:07 -0500, Dan  wrote:
>
>I am new to Perl/CGI and could use a little help from the veterans.
>
>I need to request a .html page on a machine elsewhere on the net from a 
>Perl script for the side effects, there is no page info returned.  How 
>can I do this?

Depending on what you mean by "side effects", it can be as easy as

use LWP::Simple;
$page = get $url;

If you need to see return codes, you may have to use LWP itself. Use Shuck
to look at the documentation in LWP.pm and :LWP:Simple .pm and the file
lwpcook.pod. All of these come with MacPerl.
>
>Thanks,
>
>Dan, Dan@Grassi.com
>



-------
Paul J. Schinder
schinder@pobox.com


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch