Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

checking for malformed urls

Posted on 2009-07-06
3
Medium Priority
?
226 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
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 get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

604 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