473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

URL Checker - (One Stage Further)

Hello Groups,

I have been testing a script I found that checks URL as valid...
It uses the XMLHTTP.4.0 object

sURL = "http://www.bbc.co.uk"
Set obj = CreateObject("MSXML2.XMLHTTP.4.0")
on error resume next
obj.open "GET", sURL, False
obj.send

iStatus = obj.Status
on error goto 0

this works fine on most URLS, though I do have some problems with redirected
URLs, what I have managed to do is do a database select statement outside of
the script and check my database of URLs.. This works fine..

My Database of URL are the backend of a search engine I have written, what I
was wondering, is instead of me doing a seperate external check of the URLs
using the database as above, can I do something like.....

When the user clicks on a URL, they have a varable director.asp?url=blar
blar blar, this goes to a page that does a redirect to the URL.

Is it possible for me to use the XMLHTTP object to do the redirect, and this
way would it be possible for me to have the users of my site check the URL
by grabbing the value of the statuscode from the XMLHTTP object before it is
redirected. I would like to be able to have the links constantly checked by
the users rather than me have to manually as above say every month.

something like this, if you see below I would be very keen not to make the
jump to the URL slower, so once the URL had been checked using XMLHTTP then
maybe it would be possible to use the redirect...

CLICK ON LINK
|
CHECK URL EXISTS USING XMLHTTP
|
UPDATE DATABASE WITH LAST CHECKED TIMESTAMP
|
REDIRECT TO THE URL

I am not sure if any of this is possible, butjust simple I would like the
user clicking on the link actually check it for me, and have a column in the
database called last_checked TIMESTAMP

Graham Mattingley



Jul 19 '05 #1
0 1676

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

Similar topics

4
by: Brian Folke Seaberg | last post by:
I have been examining the documentation for a class library written in C++. It seems that most of the classes in that library use two stage initialization. Objects are not ready for use after...
10
by: Jim | last post by:
Hi, Let me explain how I'd generally do things. For a page where the user edits data, I'd generally call it something like editfred.php (for example), the page which updates the data would be...
8
by: Joe | last post by:
Hello All: Does anyone know of a spell checker that works with .NET? Any options will be welcome. TIA, -- Joe
0
by: Pager O Rama | last post by:
Hi, R U BLOCKED ON MSN Messenger By Your Friend,then What are you waiting for.Visit one of the link below to find out who has blocked you in his/her friend list. http://www.hotmailpk.com/...
5
by: rob | last post by:
Does anyone know of a duplicate file checker project in C#? Couldn't locate anything on CodeProject or SourceForge. Has anyone here considered writing one?
13
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...
4
by: sweetguy1only | last post by:
Hi all, I am a MS Access developer using VB 6 (yes, I know it is a bit old). The problem I am having is, I have a software that allows my customers to put in the information of their clients....
6
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...
2
Ganon11
by: Ganon11 | last post by:
Hey all, So this was an assignment in my Data Structures and Algorithms class - we were supposed to make a C++ implementation of the spell checker described here. A Java version was also...
9
by: ARC | last post by:
Hello all, I developed a tool a year or so ago for adding your own spell-checker to an access application. This is mainly for those using the runtime, as you can't distribute the spell-checker...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.