checking for malformed urls

Posted on 2009-07-06
Medium Priority
Last Modified: 2012-05-07

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



Question by:Vlearns
  • 2
LVL 12

Accepted Solution

kevin_u earned 2000 total points
ID: 24790578
If you can install Data::Validate::URI

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


Author Comment

ID: 24796784
Thanks kevin

is there any other way?

i could not install that package on red hat linux

LVL 12

Expert Comment

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.  

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

These seven tips can help you create an extraordinary website, one that captivates audiences and has them wanting to return regularly for more. Keep reading to find out what your site is missing and what you need to add!
Magento is the best technology for eCommerce start-ups as it offers the technical expertise and visual appeal to create a store that pulls sales and earns high ROI (Return on investment).
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

624 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