CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
URL program

 



whizzy
New User

May 20, 2002, 11:52 PM

Post #1 of 3 (1183 views)
URL program Can't Post

Hi
I just need a simple perl script that will validate the url a user type in. It should be in console mode, but html will do.

The script needs to check if the user typed in http, ftp.... and check that the rest of the address is correct build up, with "www.somwhere.com/catalog2/file2"

Need a simple program for this. Can anyone point me to where I should look...or maybe send me some code?? Unsure


Jasmine
Administrator

Jun 19, 2002, 4:47 AM

Post #2 of 3 (1156 views)
Re: [whizzy] URL program [In reply to] Can't Post

I don't see a premade script that does this, but if you want to try your hand at writing one yourself, [url=http://search.cpan.org/doc/GAAS/URI-1.19/URI/URL.pm]URI::URL will help you get started.


mozkill
Novice

Jun 24, 2002, 4:31 PM

Post #3 of 3 (1146 views)
Re: [whizzy] URL program [In reply to] Can't Post

i wrote a script that does this, and posted it.

search for the post titled "Web Service Test Script"

just edit the script and remove the xml stuff and it should work for ya.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives