in reply to Re: Problem with HEAD.. but I think can be related with DNS
in thread Problem with HEAD.. but I think can be related with DNS

Aargh!! This is mine with you code:
ERROR! at test_link.pl line 85. 404 File 'reldate.txt' not found Client-Date: Thu, 20 Mar 2014 16:50:25 GMT
Something is not working for me but I cannot find out what... I have two parts of my code: - in the first I simply check for the link if it is correct - in the second I download the file corresponding to this link In the second I adjusted the code by doing a double attempt: one using LWP (HTTP::Request->new (GET => $link)) and another using File::Fetch. With File::Fetch function the download is working but not with HTTP::Request

Replies are listed 'Best First'.
Re^3: Problem with HEAD.. but I think can be related with DNS
by Anonymous Monk on Mar 21, 2014 at 09:22 UTC
    Does anyone has an idea of why this is happening?
      I was wondering if there is another way to check if an URL is working. Is HEAD the only one?

        You will have to talk to the administrators of the other machine. There is nothing we can do from the outside.

      I was asking also if there is a different way from HEAD to check if a URL is working. Because actually I want to check the link and, after a while, download it. For the download I find out the FILE::FETCH module that helped me. For the URL check I can't find anything...