Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7615623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:41:17+00:00 2026-05-31T02:41:17+00:00

I want to write an application that gets a list of urls. For each

  • 0

I want to write an application that gets a list of urls.

For each of them I need to monitor periodically if the content has changed.

I thought :

  1. to use HtmlAgilityPack to fetch html content (any other recommendation?)

  2. I don’t need to spot the change itself,

so I though to hash the content, save it in the DB

and re-compare the has in the future.

How would you suggest hashing? .net’s GetHashCode() ?

I saw this documentation http://support.microsoft.com/kb/307020

which advise using

tmpSource = ASCIIEncoding.ASCII.GetBytes(sSourceData);

why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:41:19+00:00Added an answer on May 31, 2026 at 2:41 am

    You should absolutely not use GetHashCode() for this. The documentation explicitly states:

    Furthermore, the .NET Framework does not guarantee the default implementation of the GetHashCode method, and the value it returns will be the same between different versions of the .NET Framework.

    The results of GetHashCode can change between runs – all that’s guaranteed is that calling it on two equal objects in the same process (possibly AppDomain) will give the same hash code. Indeed, String.GetHashCode‘s algorithm has changed over time, and in .NET 4 the 32-bit implementation is different to the 64-bit implementation.

    If you want to use hashing, use MD5, SHA1 etc – something with a specified algorithm which will not change. (Note that these operation on binary data rather than string data, which is probably more appropriate too – you don’t need to bother decoding the data as text.)

    It’s not clear to me whether refetching periodically is really the best idea though – do these servers not support last modified times, etags etc?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write an application that takes an XML-schema as input and has
I want to write an application that gets events on every file change on
I want to write an application that will automatically detect and fill the text
I want to write an application that monitors a music player. In my app
Hi I want to write an application that can prevent other application from using
I want to write an application for Android devices that interacts with the surface
I want to write an application for Android, a card game that can be
I want to write application settings in the registry, that are shared by x86
I want to write application in vc++, that listens for keyboard , mouse events
I want to write a Microsoft toolbar that gets a word from Microsoft Office

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.