Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Testing a URL...

Reply
Thread Tools

Testing a URL...

 
 
Graham Mattingley
Guest
Posts: n/a
 
      09-06-2003
Hi,

I have been running a site where people add there sites, so it is like a
database of URLS. Is there any way of testing if the URL is still active..

I think if the Domain list dont exist, then the page says "The page cannot
be displayed"
and if the folder dont exist the server may return something like "The page
cannot be found"

is it right that the above message are the friendly message that IE offers,
and infact the browser just gets a 404 error returned

How can I write a ASPscript to test if the domain name still exists,
www.domain.co.uk

and if the link in my database is on a sub folder like
www.deadsite.co.uk/is_it_here that a working index / default file is retuned
to the browser.

the problem is that as my database growns I will worried I will have dead
links that I will never find and will make my site look like it is not kept
updated.

Kind Regards

Graham Mattingley









 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      09-06-2003
try this.
www.darkfalz.com/1046


--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------


"Graham Mattingley" <> wrote in message
news:bjcu6k$h1u$1$...
> Hi,
>
> I have been running a site where people add there sites, so it is like a
> database of URLS. Is there any way of testing if the URL is still active..
>
> I think if the Domain list dont exist, then the page says "The page cannot
> be displayed"
> and if the folder dont exist the server may return something like "The

page
> cannot be found"
>
> is it right that the above message are the friendly message that IE

offers,
> and infact the browser just gets a 404 error returned
>
> How can I write a ASPscript to test if the domain name still exists,
> www.domain.co.uk
>
> and if the link in my database is on a sub folder like
> www.deadsite.co.uk/is_it_here that a working index / default file is

retuned
> to the browser.
>
> the problem is that as my database growns I will worried I will have dead
> links that I will never find and will make my site look like it is not

kept
> updated.
>
> Kind Regards
>
> Graham Mattingley
>
>
>
>
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
testing testing 123 neville Computer Support 7 06-28-2005 05:06 PM
testing testing neville Computer Support 16 06-05-2005 09:02 PM
testing testing neville Computer Support 2 05-27-2005 09:57 AM
testing testing 123 daniel edwards Computer Support 4 05-20-2004 10:36 PM
testing--news2004--testing Boomer Computer Support 3 09-24-2003 06:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57