Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Http interaction

Status
Not open for further replies.

Paradox321

Programmer
Jul 31, 2008
1
0
0
GB
Hey, I'm fairly new to perl and i'm trying to make a program that checks if an url (for example) exists. and if so, saves to a text file. So far it's gone pretty badly. So i'm just asking, how would some of you go about this? What functions should i be using etc.

Thankyou.
 
I would use LWP.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Probably can use LWP::Simple but LWP will work if not.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
You could WWW::Mechanize for this as well. Have it get the stauts and save it is it returns the 201 status code.

--Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top