Solved

checking for malformed urls

Posted on 2009-07-06
3
223 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 500 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video teaches users how to migrate an existing Wordpress website to a new domain.

724 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