473,503 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Broken Link Checker

Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm

TIA.
Jul 19 '05 #1
2 3069
To check the validity of a given url (say it is from query string or from
request).
Basically here what I want:
<%
sURL = Request("url")

if isValidURL(sURL) then
response.write "This url is valid"
else
response.write "This url isn't valid"
end if

%>

Now, any ideas how to create this "isValidURL" function?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OB**************@TK2MSFTNGP10.phx.gbl...
What are you looking to do now?

Ray at home

--
Will trade ASP help for SQL Server help
"Danny" <da***@nospam.com> wrote in message
news:ui*************@TK2MSFTNGP09.phx.gbl...
Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm
TIA.


Jul 19 '05 #2
Perfect.
This is what I want.

Thanks Curt.

"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
http://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...
---------------------------------------------------------

"Danny" <da***@nospam.com> wrote in message
news:ui*************@TK2MSFTNGP09.phx.gbl...
Anyone knows how to detect broken link using ASP?

Just say the link is got from query string, ie:

http://www.mydomain.com/check_validi...main.com/1.htm
TIA.


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1983
by: saqib ali | last post by:
Hello All, I manage a rather large website, that has several hundred content managers. These content managers can create links at their will. I want to take a look a list of all the Links that...
47
3182
by: Andy Dingley | last post by:
Assume an English language page, linking to a foreign history resource that's only available in a foreign language. Any suggestions on appropriate "best practice" markup, particularly regarding the...
28
3141
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site...
8
2429
by: Steve | last post by:
Hi; I had a big link checking job to do and it has been years since I have done anything like that so I found a test page to use that I knew had bad links on it( a friends site ) and I decided...
8
1828
by: Steve | last post by:
Hi Guys; You have been giving me a lot of useful information in the other two threads. Thanks! Very interesting. Here is my situation. My friend is writing a book. He has 3100 citations,...
0
1014
by: durumdara | last post by:
Hi ! Sorry for non-pythonic subject, but if I not find good solution, I will write a routine for this in python... :-))) My mod_py site is growing quickly. It have many pages, many of them...
13
2661
by: kolmogolov | last post by:
/* Hi, I have removed things irrelevant to reproducing the problem. What's wrong with my code? Thanks in advance for any hint! 1166425362 */ #include <stdio.h> #include <stdlib.h> #include...
6
10818
by: Neil | last post by:
Is there way to have control over the MS-Access spell checking (besides just launching it)? We want to tell it to check all records, but skip certain fields (or, alternatively, ONLY check certain...
3
4122
by: Giampaolo Rodola' | last post by:
Hi there, I would like to know if such function would be correct for verifying if a link is broken and/or circular. def isvalidlink(path): assert os.path.islink(path) try: os.stat(path)...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.