Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Check remote webpage for modifications
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Check remote webpage for modifications

 Post Reply Post Reply
Author
mdaurelian View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdaurelian Quote  Post ReplyReply Direct Link To This Post Topic: Check remote webpage for modifications
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mdaurelian View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdaurelian Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
cmv View Drop Down
Newbie
Newbie


Joined: 22 May 2009
Location: vienna
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmv Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.