Verify a url form a perl script

J

joe

I have been asked to write a perl script that will deploy a web page
to one of our servers, I was able to do this. But now I want to be
able to make sure that web page comes up and that we can navagate
around the pages. Is there some built in functions that will let me do
this? Can someone point me in the right direction to get started.
Thanks,
Zim
 
P

Paul Lalli

joe said:
I have been asked to write a perl script that will deploy a web page
to one of our servers, I was able to do this. But now I want to be
able to make sure that web page comes up and that we can navagate
around the pages. Is there some built in functions that will let me do
this? Can someone point me in the right direction to get started.

A pointer in the right direction: perldoc LWP::Simple

This is the module that lets you write very simple HTTP clients. Use it
to fetch a supplied URL, and then peruse the returned document (perhaps
with HTML::parser) to verify that it contains what you think it
contains.

Paul Lalli
 
J

joe

Douglas Hunter said:
WWW::Mechanize is available from the CPAN and is very useful for this
type of work.


-- Douglas Hunter
I got WWW::Mechanize from CPAN but I can't find a readme for it. So I
am not sure how to install it on my system. I tried the perl
makefile.pl, make, but it failed saying it couldn't find some other
modules. Does anyone have a complete list of what else needs to be
installed so that I can install this?
Thanks,
Zim
zzzz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,162
Messages
2,570,893
Members
47,432
Latest member
GTRNorbert

Latest Threads

Top