Print Page | Close Window

Check remote webpage for modifications

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27382
Printed Date: 29 March 2026 at 4:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Check remote webpage for modifications
Posted By: mdaurelian
Subject: Check remote webpage for modifications
Date Posted: 18 May 2009 at 2:36pm
Hi,

Is there a method in order to check a remote web page for modifications using an ASP page.
Perhaps this ASP page running on a web server retrieve the remote page content and check word
counts on that page or other parameters in order to tell that page has a modified content ?

Is there a method in ASP to count for words, and how can you schedule this ASP page to check the remote page from time to time.

Thank you for any suggestions  !
Dan



Replies:
Posted By: WebWiz-Bruce
Date Posted: 18 May 2009 at 3:37pm
You could use Microsofts XMLHTTP component to get the web page from the remote server, then use regular expressions to count the number of words on the page.

However there is not a way in ASP to schedule a page to run at set times, you would need to have something trigger a call to the page.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mdaurelian
Date Posted: 18 May 2009 at 8:11pm
Originally posted by WebWiz-Bruce WebWiz-Bruce wrote:

You could use Microsofts XMLHTTP component to get the web page from the remote server, then use regular expressions to count the number of words on the page.

However there is not a way in ASP to schedule a page to run at set times, you would need to have something trigger a call to the page.


Thanks Bruce, could be something like page reload or some java script code or a php page or some sort of trigger from a database in order to schedule the ASP page to run?


Posted By: cmv
Date Posted: 22 May 2009 at 9:22pm
well, you _could_ pack that into VB code and trigger a power-shell via task scheduler ... but nothing i would really like to do ...
 
another idea - set a timeout for checking a page, maybe save it in a (link-)table alongside the *last checked date*
from any convenient asp-script query the table for overdue checks and in case a not empty recordset is returned trigger the appropriate function ...
 
depending on the length of the list, your traffic and server ressources you might want to limit the max number of checks to something useful.
if appropriate you could also add some code to the application_onstart or session_onstart sub of your global.asa
hth, christian


-------------
and remember: a CRAY is the only computer that runs an endless loop in just four hours ...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net