?
Solved

checking for malformed urls

Posted on 2009-07-06
3
Medium Priority
?
224 Views
Last Modified: 2012-05-07
Hi

Is there a easy way in perl to check if the web  url is malformed or bad....something that removes invalid http/s formats?

thanks

 

0
Comment
Question by:Vlearns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 2000 total points
ID: 24790578
http://search.cpan.org/~sonnen/Data-Validate-URI-0.05/lib/Data/Validate/URI.pm
If you can install Data::Validate::URI

If you can't install it, or its no already installed, borrow the code from its source:

http://cpansearch.perl.org/src/SONNEN/Data-Validate-URI-0.05/lib/Data/Validate/URI.pm
0
 

Author Comment

by:Vlearns
ID: 24796784
Thanks kevin

is there any other way?

i could not install that package on red hat linux

0
 
LVL 12

Expert Comment

by:kevin_u
ID: 24799869
You can look at the second URL that I posted, and pick up the source for the module, and include it in what you're doing.  
0

Featured Post

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question