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

Yes.. you are right. If the server gives 404 the IP address is resolved. But what can be the problem otherwise? Do you tried this code? Is it working for you?
  • Comment on Re^2: Problem with HEAD.. but I think can be related with DNS

Replies are listed 'Best First'.
Re^3: Problem with HEAD.. but I think can be related with DNS
by Corion (Patriarch) on Mar 20, 2014 at 16:54 UTC

    At least I get no 404 error for the URL when I paste it into my browser.

    Maybe you want to print out more stuff while your program runs, and use LWP::Debug to see what actually happens? If the server is giving you a 404 but not other people, maybe the server administrators have banned your IP address, your user agent or some other attribute associated with you.

      I also get no error 404 by using the browser. The problem accessing it with PERL. If I can access it, I suppose that my IP is not banned. Maybe the User Agent. Thank you for giving me this reference to Debug function. I'll go through it...
        This is the tracking of the LWP:Debug:
        GET ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowle +dgebase/complete/reldate.txt Accept-Encoding: gzip, x-gzip, deflate, x-bzip2 User-Agent: libwww-perl/5.834 (no content) 404 File 'reldate.txt' not found Client-Date: Thu, 20 Mar 2014 16:38:13 GMT (no content) There is an error
        Can you tell me from this if the DNS is working? The problem is in the server? Are they banning something?