Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::Simple; my $content = get("http://www.photographersdirect.com/sellers/pe_selle +rredirect.asp?$ENV{'QUERY_STRING'}"); <code> if (defined $content) { #$content will contain the html associated with the url mentioned +above. print $content; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/T +R/html4/strict.dtd"> <html> <head> <title>PHOTOGRAPHERS DIRECT - Fair Trade Photography</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 +"> <style type="text/css"> </head> <body> content </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using LWP::Simple to display an html (asp) page
by tcf22 (Priest) on Aug 27, 2003 at 17:39 UTC | |
by Anonymous Monk on Aug 27, 2003 at 17:56 UTC |