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

  • Home
  • SEARCH
  • 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 7807179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:46:16+00:00 2026-06-02T02:46:16+00:00

In my application, I fetch webpages periodically using LWP. Is there anyway to check

  • 0

In my application, I fetch webpages periodically using LWP. Is there anyway to check whether between two consecutive fetches the webpage has got changed in some respect (other than explicitly doing a comparison) ? Is there any signature(say CRC) that is being generated at lower protocol layers which can be extracted and compared against older signatures to see possible changes ?

  • 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-06-02T02:46:17+00:00Added an answer on June 2, 2026 at 2:46 am

    There are two possible approaches. One is to use a digest of the page, e.g.

    use strict;
    use warnings;
    
    use Digest::MD5 'md5_hex';
    use LWP::UserAgent;
    
    # fetch the page, etc.
    my $digest = md5_hex $response->decoded_content;
    
    if ( $digest ne $saved_digest ) { 
        # the page has changed.
    }
    

    Another option is to use an HTTP ETag, if the server provides one for the resource requested. You can simply store it and then set your request headers to include an If-None-Match field on subsequent requests. If the server ETag has remained the same, you’ll get a 304 Not Modified status and an empty response body. Otherwise you’ll get the new page. (And new ETag.) See Entity Tags in RFC2616.

    Of course, the server could be lying, and sending the same ETag even though the content has changed. There’s no way to know unless you look.

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

Sidebar

Related Questions

My application often fetch data from a webpage using WebRequest, but it isn't possible
In my application I am using in app billing (Android). I want to fetch
I'm trying to fetch some webpages using the code below: public static string FetchPage(string
I want to create application to fetch the current location data using Java script.
I am using VS2010 - WPF - C# in my application I fetch data
I have developed a small application using Perl/Tk. The application will fetch data from
In rails application, i am trying to fetch few records using a Ajax/jQuery, am
I'm working an application that periodically fetch data from a web service. The problem
I have a web service application and i fetch my data using GET request
I've created a simple Flex application to fetch an XML file. I need a

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.